我要从数据库里取数据,有着么一段code:
...
where
condition1 and
condition2 and
a.variable1 = 'ABC' and
condition4 and
condition5;
quit;
但是总说有错,说在用where的时候,应该在‘,’ 和 ‘and' 之间有个 “)”之类的东西。可我的code里根本没有逗号 ’,'
请讲讲这是怎么回事, 万分感谢。
请教SQL大虾们一个比较不太难的问题:
所有跟帖:
•
有时候系统提示doesnt make sense, 你吧你的code和系统提示原汁原味的贴上来
-撅着挺好-
♂
(0 bytes)
()
07/29/2009 postreply
20:41:44
•
那得等明天了,太晚了。
-小谋-
♀
(0 bytes)
()
07/29/2009 postreply
20:58:37
•
回复:请教SQL大虾们一个比较不太难的问题:
-susan_6_5-
♀
(33 bytes)
()
07/29/2009 postreply
21:14:22
•
我觉得是那个a.var1='ABC' and ...出问题了,我也试了另一个写法:
-小谋-
♀
(54 bytes)
()
07/29/2009 postreply
21:25:32
•
碰到这种情况就用排除法,从第一个condition开始
-撅着挺好-
♂
(48 bytes)
()
07/29/2009 postreply
21:55:29
•
对,排除法对付这个case很正。一个个加上去or 一个个去掉。
-戏雨飞鹰-
♀
(0 bytes)
()
07/30/2009 postreply
07:41:58
•
google error code and message
-goyo-
♂
(43 bytes)
()
07/30/2009 postreply
08:20:19
•
check also the FROM and SELECT
-goyo-
♂
(34 bytes)
()
07/30/2009 postreply
08:22:51
•
我今天上班找到那个多出来的逗号了.
-小谋-
♀
(0 bytes)
()
07/30/2009 postreply
20:47:25