请问各位:我把Oracle9i和自己用vc写的程序放在同一台电脑上,执行select scott.emp.*,(select dname from scott.dept where scott.dept.deptno=scott.emp.deptno) from scott.emp
就会报错“缺少右括号”,VC的程序放在只装客户端的电脑上运行就正常,那位大侠遇到这种情况的
...全文
3459打赏收藏
报错“缺少右括号”
请问各位:我把Oracle9i和自己用vc写的程序放在同一台电脑上,执行select scott.emp.*,(select dname from scott.dept where scott.dept.deptno=scott.emp.deptno) from scott.emp 就会报错“缺少右括号”,VC的程序放在只装客户端的电脑上运行就正常,那位大侠遇到这种情况的
[Quote=引用楼主 amethyst623 的回复:]
请问各位:我把Oracle9i和自己用vc写的程序放在同一台电脑上,执行select scott.emp.*,(select dname from scott.dept where scott.dept.deptno=scott.emp.deptno) from scott.emp
就会报错“缺少右括号”,VC的程序放在只装客户端的电脑上运行就正常,那位大侠遇到这种情况的
[/Quote]
select a.*,b.dname
from scott.emp a,scott.dept b
where a.deptno=b.deptno