有两个表tb1,tb2,我要列出tb2中的字段name的内容,要求是如果tb1中也有该名字,则不列出。 怎么没人帮我看看这积压SQL语句的写法啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 根据我的理解:select name from tb2 where tb2.name not in (Select DISTINCT(name) from tb1) Select * From tb1 Where name Not In(Select name From tb2) Select * From tb1 Where name Not In(Select name From tb2)这句话在语法上是有毛病的 只能确定楼主的错误。楼上们的,就不清楚了。照葫芦画瓢就应该是这样:select name from tb2 where name not in (Select DISTINCT(name) from tb1) not in (括号中只能是以逗号分开的语句才行,可是现在好象并没有分开啊) PHP支持不支持这种语法方式 登陆的时候怎样记录用户名 关于PHP占用的内存的占用问题 求查询的实现方法 求网页模板 SQL-FRONT中存储过程字符类型转换的问题 zend framwork+smarty的问题!请高手帮帮忙 请教一个简单的正则问题 php_mssql.dll' - 找不到指定的模块 请问如何在win98下以 Apache 模块方式安装 PHP 4.1.1? 求助 站点日历 代码! 通用表单生成程序(php+mysql)
select name from tb2 where tb2.name not in (Select DISTINCT(name) from tb1)
这句话在语法上是有毛病的
select name from tb2 where name not in (Select DISTINCT(name) from tb1)