google 'SQL Join'

回答: Please help in SQL code and Thank youluck20102011-01-08 16:28:50

从两个以上的table找东西,用的语句是join,google it, a simple inner join may work for you in this case.

and 是逻辑运算符号,不可以用它把两个 table 连起来,这是基本概念混淆了。

所有跟帖: 

后面的条件也不能用逗号,用 AND/OR -胡跟之- 给 胡跟之 发送悄悄话 (0 bytes) () 01/08/2011 postreply 17:45:19

跟得好,这才名副其实 -胡说之- 给 胡说之 发送悄悄话 胡说之 的博客首页 (0 bytes) () 01/08/2011 postreply 17:48:59

错了,这个可不是胡跟:) -胡跟之- 给 胡跟之 发送悄悄话 (0 bytes) () 01/08/2011 postreply 17:52:30

还是错了,老师也不是胡说:D -胡跟之- 给 胡跟之 发送悄悄话 (21 bytes) () 01/08/2011 postreply 18:05:22

请您先登陆,再发跟帖!