请问同时查询两个表的SQL语句该怎样写? 用View.(即设计一个视图就可以了.SQLserver里叫view,Access里叫"查询"吧.) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用View.(即设计一个视图就可以了.SQLserver里叫view,Access里叫"查询"吧.) select 表1.字段1, 表1.字段2, 表2.字段1, 表2.字段2 From 表1, 表2 where 表1.字段3='' select a.*, b.* from table1 a, table2 b where a.columnX='true' 为什么我这样写却不对呢?sql="select addes.*,oher.* from addes,oher where addes.orderid=oher.orderid and addes.orders=true" 为什么我这样写却不对呢?sql="select addes.*,oher.* from addes,oher where addes.orderid=oher.orderid and addes.orders=true" 但如果 where只选择其中一项就可以了,语法错误? 初学SQL,许多地方都不懂,请大家继续指教。:) select addes.*,oher.* from addes,oher where addes.orderid=oher.orderid and addes.orders=true语句没有错!应该是别的问题.与其 addes.orders=true不如 addes.orders=1或者0 hnxyy(大师)煞笔,知道我是谁吧,呵呵 php操作MS SQL 2000问题 php加密一串html相关 关于复杂搜索问题,100分! 求助!IE与IE内核的浏览器无法正常写入COOKIE 请教ini_set函数的应用 不知道是不是php的bug,关于字符串中含有"?>" 初学PHP,想把如下一小段ASP代码转成PHP,还望指教! w32api_register_function()不能用!帮忙啊。 对已经上传的文件如何删除呀 急需宁波的兼职PHP程序员!!! 关于stat函数的奇怪问题,解决后马上给分! 在PHP中怎样实现跳转到其它页?
from table1 a, table2 b
where a.columnX='true'
sql="select addes.*,oher.* from addes,oher where addes.orderid=oher.orderid and addes.orders=true"
sql="select addes.*,oher.* from addes,oher where addes.orderid=oher.orderid and addes.orders=true"
但如果 where只选择其中一项就可以了,语法错误?
初学SQL,许多地方都不懂,请大家继续指教。:)
不如 addes.orders=1或者0
煞笔,知道我是谁吧,呵呵