加入 [英] join

查看:83
本文介绍了加入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

展开 | 选择 | Wrap | 行号

解决方案


SELECT emptable.empname,emptable来自emptable内部联接depttable的.deptid,depttable.deptname

ON emptable.deptid = depttable.deptid


第1行的错误:

ORA-00933:SQL命令没有正确结束


im使用oracle8 ..同时尝试使用join&它的类型我得到这种类型的错误。 PLZ任何人告诉我答案



试试这个:

展开 | 选择 | 换行 | 行号



试试这个:

展开 | < span class =codeLinkonclick =selectAll(this);>选择 | Wrap | 行号



哇......... itz working。非常感谢..


实际上它有什么不对吗?刚刚知道



我没有使用INNER JOIN ketywords,而是给表提供了别名,并使用别名来选择列和WHERE子句。


Expand|Select|Wrap|Line Numbers

解决方案

SELECT emptable.empname, emptable.deptid, depttable.deptname from emptable inner join depttable
ON emptable.deptid = depttable.deptid

ERROR at line 1:
ORA-00933: SQL command not properly ended


i m using oracle8.. while trying to use join & its types i am getting this type of errors. plz any one tell me the answer

Try this:

Expand|Select|Wrap|Line Numbers


Try this:

Expand|Select|Wrap|Line Numbers


wow ......... itz working. thank you very much..

actually what was the wrong in it? just waned to know

Instead of using INNER JOIN ketywords, I had given alias names to the tables and used the alias names to select the columns and in the WHERE clause.


这篇关于加入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆