请问同时查询两个表的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(大师)煞笔,知道我是谁吧,呵呵 mysql无法安装 一道面试题,求思路,求代码。高分 麻烦大家给小弟一点php操作数据库的基础知资料好吗? php 问题 函数定义问题 请问一下.mysql有没有法根据情况执行Sql?if语句 unix文件格式 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
煞笔,知道我是谁吧,呵呵