注册 登录
编程论坛 ASP技术论坛

select 查询问题

hksyw 发布于 2011-01-07 15:38, 749 次点击
select * from a where code=等于的内容在另一个表里


这个怎么写呀
在线等
6 回复
#2
zmh8862011-01-07 16:16
我的办法是先取出来 再写放进这句。
#3
hksyw2011-01-07 17:28
能给出代码吗?
谢谢
#4
hksyw2011-01-07 18:04
帮帮忙吧
在线等呀
#5
hams2011-01-08 08:54
取出来就是去读那个数据库表里的数据
#6
浅水遨游2011-01-09 20:05
用join语句啊,select * from tablea join tabtleb where a.code=b.code;
#7
kangli_kl2011-01-12 17:06
sql嵌套:select * from a where code=(select code from table_b where "你的选取条件")
1