由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - help!!! who's familiar with mysql command
相关主题
MySQL数据库用户管理求助my sql 还值得学么?
熟MySQL的同学请帮忙MySQL question
一问mysql索引/优化的一个问题
winmysqladmin中的databases不显示数据库== MySql问题 ==
mysql -- could not use the database怎样快速得到两个表的交集
伤心,excelMySQL row selection question
下载mysql问题MySQL安全问题
安装mysql是不是只要MySQL Community Server就可以了SQL 分类汇总 并且按照汇总值排序
相关话题的讨论汇总
话题: command话题: select话题: mysql话题: data话题: familiar
进入Database版参与讨论
1 (共1页)
t*******g
发帖数: 286
1
I have 2 sets of data that stored in mysql as table A and B. both have 2
field : GI(primary key) and Function in the table. I tried the command:
Select A.GI from A,B where A.GI=B.GI; and got the
data that has A and B in common.
but How could I compare this 2 tables and get the data that just included in
A but not in B? the command: Select A.GI from A,B where A.GI != B.GI; didn'
t work.
please help me out! thanks
w*r
发帖数: 2421
2
select a.gi, b.gi
from a left join b on (a.gi = b.gi)
where b.gi is null;

in
didn'

【在 t*******g 的大作中提到】
: I have 2 sets of data that stored in mysql as table A and B. both have 2
: field : GI(primary key) and Function in the table. I tried the command:
: Select A.GI from A,B where A.GI=B.GI; and got the
: data that has A and B in common.
: but How could I compare this 2 tables and get the data that just included in
: A but not in B? the command: Select A.GI from A,B where A.GI != B.GI; didn'
: t work.
: please help me out! thanks

1 (共1页)
进入Database版参与讨论
相关主题
SQL 分类汇总 并且按照汇总值排序mysql -- could not use the database
问一个Oralce index的问题伤心,excel
MySQL全文搜索的问题下载mysql问题
why this full-text search doenst work properly?安装mysql是不是只要MySQL Community Server就可以了
MySQL数据库用户管理求助my sql 还值得学么?
熟MySQL的同学请帮忙MySQL question
一问mysql索引/优化的一个问题
winmysqladmin中的databases不显示数据库== MySql问题 ==
相关话题的讨论汇总
话题: command话题: select话题: mysql话题: data话题: familiar