oracle错误:ORA-00920: 无效的关系运算符,请问应该怎么解决?
selectthis_.idasid25_1_,this_.BL_CODEasBL2_25_1_,this_.RECEIVERasRECEIVER25_1_,this_....
select this_.id as id25_1_,
this_.BL_CODE as BL2_25_1_,
this_.RECEIVER as RECEIVER25_1_,
this_.HANDLER as HANDLER25_1_,
this_.BL_DATE as BL5_25_1_,
this_.TOTAL as TOTAL25_1_,
this_.REMARKS as REMARKS25_1_,
this_.STATE as STATE25_1_,
this_.INVENTORY_DATE as INVENTORY9_25_1_,
this_.LLRID as LLRID25_1_,
this_.CONFIRM_STATE as CONFIRM11_25_1_,
this_.CREATER as CREATER25_1_,
this_.RECEIVE_ORG_ID as RECEIVE13_25_1_,
this_.BL_ID as BL14_25_1_,
this_.ORGAN_ID as ORGAN15_25_1_,
bndusertab2_.USERID as USERID9_0_,
bndusertab2_.LOGINNAME as LOGINNAME9_0_,
bndusertab2_.USERNAME as USERNAME9_0_,
bndusertab2_.PASSWORD as PASSWORD9_0_,
bndusertab2_.REDATE as REDATE9_0_,
bndusertab2_.PHONE as PHONE9_0_,
bndusertab2_.STATE as STATE9_0_,
bndusertab2_.EMAIL as EMAIL9_0_,
bndusertab2_.CORECODE as CORECODE9_0_,
bndusertab2_.ROLES as ROLES9_0_,
bndusertab2_.STAFFID as STAFFID9_0_
from BND_STORAGE_BL this_
left outer join BND_USER_TAB bndusertab2_ on this_.CREATER =
bndusertab2_.USERID
where BL20130401342 展开
this_.BL_CODE as BL2_25_1_,
this_.RECEIVER as RECEIVER25_1_,
this_.HANDLER as HANDLER25_1_,
this_.BL_DATE as BL5_25_1_,
this_.TOTAL as TOTAL25_1_,
this_.REMARKS as REMARKS25_1_,
this_.STATE as STATE25_1_,
this_.INVENTORY_DATE as INVENTORY9_25_1_,
this_.LLRID as LLRID25_1_,
this_.CONFIRM_STATE as CONFIRM11_25_1_,
this_.CREATER as CREATER25_1_,
this_.RECEIVE_ORG_ID as RECEIVE13_25_1_,
this_.BL_ID as BL14_25_1_,
this_.ORGAN_ID as ORGAN15_25_1_,
bndusertab2_.USERID as USERID9_0_,
bndusertab2_.LOGINNAME as LOGINNAME9_0_,
bndusertab2_.USERNAME as USERNAME9_0_,
bndusertab2_.PASSWORD as PASSWORD9_0_,
bndusertab2_.REDATE as REDATE9_0_,
bndusertab2_.PHONE as PHONE9_0_,
bndusertab2_.STATE as STATE9_0_,
bndusertab2_.EMAIL as EMAIL9_0_,
bndusertab2_.CORECODE as CORECODE9_0_,
bndusertab2_.ROLES as ROLES9_0_,
bndusertab2_.STAFFID as STAFFID9_0_
from BND_STORAGE_BL this_
left outer join BND_USER_TAB bndusertab2_ on this_.CREATER =
bndusertab2_.USERID
where BL20130401342 展开
3个回答
展开全部
oracle错误:ORA-00920: 无效的关系运算符是运算符使用错误造成的,解决方法为:
1、双击plsql developer软件,进行连接数据库。
2、在命令窗口中先进行简单查询,并不进行限定查询,如下图。
3、限定查询其实就是where子句,逻辑运算符就是and or not,在查询的时候对输出结果进行定制查询,因为当表的数据量非常大的时候,直接使用简单查询有效率会非常的低,特别在是查询大表数据的时候,如下图查看sh用户下其中一张表的数据。
4、因为数据量非常的大所以在查询的时候非常有必要进行限定查询,在限定查询的时候条件尽量要精确,如下图因为条件不太精确导致查询的时候也非常的长。
5、同时在进行限定查询的时候可以使用and or not等运算符,如下图可以看到在使用了逻辑运算符之后查询数据更加精确,效率也更高效,在使用and的时候要求两边的条件都必须满足才可以。
6、在使用逻辑运算符or的时候,只要两边的条件有一个满足就可以进行相应的查询,如下图。
推荐于2016-08-17
展开全部
where BL20130401342 后面没有了?
应该是
WHERE 列名 = 数据的吧。
例如:
SQL> select * from test_main where id;
select * from test_main where id
*
ERROR 位于第 1 行:
ORA-00920: 无效的关系运算符
SQL> select * from test_main where id = 1;
未选定行
应该是
WHERE 列名 = 数据的吧。
例如:
SQL> select * from test_main where id;
select * from test_main where id
*
ERROR 位于第 1 行:
ORA-00920: 无效的关系运算符
SQL> select * from test_main where id = 1;
未选定行
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
select * from table1 left outer join table2 on table1.xxx=table2.xxx where 条件 你的条件没写清楚呀/
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询