一个简单的SQL语句问题,解决马上结帖! select * from twhere substr(col,3) in (09,10) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 --用'09','10'会是严格点:select * from twhere substr(col,3) in ('09','10') JeromeLiu(烛光) 能解释一下substr(col,3)吗? 通过substr系统函数取得4位数字中的后两位在通过查询关键字in(等同与 .. or .. or..)来限制结果。 select * from t where substr(col,3) between 9 and 10; substr的用法:16:22:08 SQL> select substr('1234',3) from dual;SU--34已用时间: 00: 00: 00.3116:24:02 SQL> select substr('1234',3,1) from dual;S-3已用时间: 00: 00: 00.3116:24:10 SQL> 详细的参考请访问:http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/functions119a.htm#SQLRF06114 触发器/函数不能读它 求几个建表的维度,设计思路oracle TNS-00538: Message 538 not found 关于sqlloader导入多表的问题 exp备份多表的一个问题 数据库联结参数设置 下面的存储过程哪错了,急.. system/manager登陆问题? 请教高手:pl/sql developer的sql windows中为什么不能同时运行两条查询语句? select出的两个集合的操作,一个是另外一个的子集合 在oracle中如何添加作业? ***这个sql怎么写?***
select * from t
where substr(col,3) in ('09','10')
在通过查询关键字in(等同与 .. or .. or..)来限制结果。
where substr(col,3) between 9 and 10;
--
34已用时间: 00: 00: 00.31
16:24:02 SQL> select substr('1234',3,1) from dual;S
-
3已用时间: 00: 00: 00.31
16:24:10 SQL>
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/functions119a.htm#SQLRF06114