SQL> select * from test2;
A
--------------------
12345
23456
SQL> select * from test3;
A
--------------------
123
SQL> select test2.a,test3.a from test3,test2 where test2.a like ''||test3.a||'%'
2 ;
A A1
-------------------- --------------------
12345 123
SQL> select test2.a,test3.a from test3,test2 where test2.a like ''||test3.a||'%'(+);
select test2.a,test3.a from test3,test2 where test2.a like ''||test3.a||'%'(+)
*
ERROR 位于第 1 行:
ORA-00933: SQL command not properly ended
SQL>
现在要把TEST2中的数据做外连接,可是报错,请教,这个like 字段%的外连接怎么写??
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28419/viewspace-613741/
,如需转载,请注明出处,否则将追究法律责任。