11:17:58 SQL> select * from tt;COL1
----------
01
0101
0102
010201
010202已用时间: 00: 00: 00.16
11:18:04 SQL> select * from tt
11:18:07 2 where length(col1)=(select max(length(col1)) from tt tb
11:18:07 3 where tb.col1 like '%'||tt.col1||'%');COL1
----------
0101
010201
010202已用时间: 00: 00: 00.16
11:18:07 SQL>
----------
01
0101
0102
010201
010202已用时间: 00: 00: 00.16
11:18:04 SQL> select * from tt
11:18:07 2 where length(col1)=(select max(length(col1)) from tt tb
11:18:07 3 where tb.col1 like '%'||tt.col1||'%');COL1
----------
0101
010201
010202已用时间: 00: 00: 00.16
11:18:07 SQL>
解决方案 »
- 菜鸟 求一条SQL语句 急!!
- 客户端联接数据库,经常出“监听程序无法启动专用服务器进程”的问题,重启数据库就好了,请高手指点!
- 求 oracle 9i for linux
- 用一个用户删除另一个用户的表的实现 高手进来指点
- OracleOraHome92TNSListener服务启动不了!!
- 一个存储过程的代码行数超过200时会出现什么问题
- 几个Oracle镜像功能问题
- 求助一个小问题?
- 含有execute immediate 'insert into test001 values(1,''jd'')'的过程被调用时提示:insufficient privilege .
- Oracle9i卸载不干净,后台的OracleServiceORCL无法删除.
- 查询最小日期的SQL语句.急!!
- 急!!ORACLE FORM6I问题!急!!100分!!!!!
11:19:45 2 where length(col1)=(select max(length(col1)) from tt tb
11:19:46 3 where tb.col1 like tt.col1||'%');COL1
----------
0101
010201
010202已用时间: 00: 00: 00.31
11:19:52 SQL>