[quote=引用 2 楼 xingshen100 的回复:] [quote=引用 1 楼 z_shousi 的回复:] select substr('select * from table fromsts;',1,instr('select * from table fromsts;','from')-1), substr('select * from table fromsts;',instr('select * from table fromsts;','from')+4) from dual --这种截取?
select substr('select * from table fromsts;',1,instr('select * from table fromsts;','from')-1), substr('select * from table fromsts;',instr('select * from table fromsts;','from')+4) from dual --这种截取?
string.indexOf(String str)
你是在数据库使用,还是在java(或者说程序)中使用?
[quote=引用 1 楼 z_shousi 的回复:] select substr('select * from table fromsts;',1,instr('select * from table fromsts;','from')-1), substr('select * from table fromsts;',instr('select * from table fromsts;','from')+4) from dual --这种截取?
17,088
社区成员
55,238
社区内容
加载中
试试用AI创作助手写篇文章吧