求一条SQL语句。帮帮忙各位。 本帖最后由 dangjianghao 于 2010-07-21 14:06:36 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select name from 表2 t1 where not exists(select 1 from 表1 where name=t1.name); select a.*from 表2 a left join 表1 b on a.id=b.id and a.name=b.namewhere b.id is null mysql分区字段若为char类型的数字 mysql 如何查找字段所在表 MYSQL数据库连接出错,重新刷新又好了 mysql中如何写可以设置一个INT型字段为自动增加 请教增加外键的sql语句 在win2000下 mysql 可以安装两个吗?怎么装? 这样的sql语句怎么写 请问有没有办法把两条查询出来的记录作为一条sql拼接? 两个表之间查询对应项,类似excel里的vlookup功能如果写语句,请大神帮忙! 求教navicat for mysql 如何设置重复内容不导入(插入) 求最小值记录的其他相关信息 表级别复制而言对从机器压力多大导致sql查询
select name from 表2 t1 where not exists(select 1 from 表1 where name=t1.name);
from 表2 a left join 表1 b on a.id=b.id and a.name=b.name
where b.id is null