两个sql表关联以外的问题 本帖最后由 kunlin888 于 2010-09-15 16:29:36 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 --“我想在一页面中显示表一的记录(但如果表二中有了表一的记录就不显示,”select * from 表一where rowid not in (select distinct opptrowid from 表二 )“取只显示表三的记录”什么意思?表三是干嘛用的? 也可以left join之后查为null的那一行。 试试这个,应该没问题select * from table1 where rowid not in(select rowid from table1,table2 where table1.rowid=table2.Opptrowid ) 按照你的说明 不就是取表一中不在表二的记录。。引用2楼的SQL语句:select * from 表一 where rowid not in (select distinct opptrowid from 表二 )是对的,如果错误 那只能是你所要表达的不是这个意思 求一段 简单的死锁的 sql 事物 想深入 理解下 给个答案!谢谢,(mysql) 关于SQL聚合函数请教 新手请问:如何解决这个问题?case /where ◆求高效无限类别设计方法◆ 求数据库达人指点小弟一条查询语句...在线等! sql server 2000的个人版有那些操作是不可以做的 有关主键重复的问题?急请大侠救命!!! 有个查询问题问大家 sql 服务器时间 SQL题求解 SQL Server 2000的Job列表的next run date全部显示”Date and Time not available“
select * from 表一
where rowid not in (select distinct opptrowid from 表二 )“取只显示表三的记录”什么意思?表三是干嘛用的?
select * from table1 where rowid not in(select rowid from table1,table2 where table1.rowid=table2.Opptrowid )
引用2楼的SQL语句:select * from 表一 where rowid not in (select distinct opptrowid from 表二 )
是对的,如果错误 那只能是你所要表达的不是这个意思