主题:select-sql语句求助
mstzl
[专家分:70] 发布于 2009-02-13 22:39:00
下述语句执行时报错,请指点错在什么地方。谢了!
select companyname from (SELECT companynumber,companyname FROM customer) into curs aa
回复列表 (共4个回复)
沙发
cbl518 [专家分:57140] 发布于 2009-02-14 00:44:00
select a.companyname from (SELECT companynumber,companyname FROM customer) a into curs aa
板凳
cbl518 [专家分:57140] 发布于 2009-02-14 00:46:00
应该为主查询指定,与子表不同的表别名。
3 楼
mstzl [专家分:70] 发布于 2009-02-18 19:53:00
谢谢! 不过仍提示语法错误
4 楼
lbscyb [专家分:4780] 发布于 2009-02-19 00:36:00
SELECT companynumber,companyname FROM customer into cursor bb
select companyname from bb into curs aa
我来回复