作者BraveCattle (勇气牛)
看板Database
标题[SQL ] 在ORACLE中取出栏位的部份字元
时间Thu Oct 29 16:50:59 2009
想请教大家
像在SQL SERVER中where test[3,5]
代表取出test栏位资料的3到5字元
假设TEST中的资料为abcdef,则select test的结果为cde
ACCESS好像也有这样的功能为MID(test, 3, 5)
想请教ORACLE有类似的函数吗?
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.69.124.41
1F:推 roywu607:select substr(test,3,5) from table 10/29 16:56
2F:→ BraveCattle:谢谢,好快 10/29 17:21