select ist_id from aclinesegment where id='116530640861528276';
将aclinesegment,116530640861528276提取出来并输出。。求解。各位大神。。
System.out.println(s2.substring(s2.indexOf("from")+5, s2.indexOf("where")-1));
System.out.println(s2.substring(s2.indexOf("=")+2, s2.length()-1));
如果是能看到 这个串 是可以数个数的 charAt 到a字符 subString截取index到你要的串的长度
如果是能看到 这个串 是可以数个数的 charAt 到a字符 subString截取index到你要的串的长度
116530640861528276
String condition = str.substring(str.indexOf("'")+1,str.lastIndexOf("'"));
aclinesegment
String result = str.substring(str.indexOf("from")+5, str.indexOf("where")-1);
C语言啊,,,也可以用正则表达式,参考这里:http://blog.csdn.net/chenjiayi_yun/article/details/43375201
" from .* where";
"'"+".*"+"'";
用这两个正则表达式匹配就行
没有看懂是啥意思,aclinesegment 是表名?