create table city(cid int,cnm char(10))
create table conduct(oid char(10),cid int,sort int)insert into city select 1, '北京' union all
select 2 , '上海' union all
select 3 , '广州'insert into conduct select '4200000' ,1 ,2select a.CId,a.CNm,b.Sort from City a,Conduct b where a.cid*=b.cid and b.OId='4200000'
解决方案 »
- sql跟踪里遇到的问题
- select a,b=(select x from t where id<3) from t2 where id<5;如何让b=子查询结果字符串相加?
- exists语句中的表名是变量的问题
- 关于触发器的执行
- 从xml文件读取数据和从数据库中读出数据,哪种方式好一点?哪种速度快一点?
- 80奖励,请问实现统计查询功能,后台是不是需要建立相应的表
- 立即给分,一个很简单的查询问题!
- ACCESS数据库关系导入到SQL-SERVER数据库???
- 这样写是什么意思?请高手来解释一下,急!急!!在线等待!!
- 关于SQL Server的备份
- 主从表的存储过程问题,大虾要出手啊~~~!!!!
- [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionCheckForData (CheckforData()).高分急求
from City a
left join Conduct b on b.CId=a.CId and b.OId='4200000'
left join Conduct on City.CID=Conduct.CID and OId='4200000'
left join Conduct on City.CID=Conduct.CID and OId='4200000'