怎么从一个select语句中截取表名 select * from tableName where id = "1";像这样一句select语句,如何才能截取到"tableName"呢?不一定有where,也许会是order by 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 光字符串处理? String str = "select * FROM tableName where id = \"1\""; Pattern wd = Pattern.compile("(?<=from) +(\\w+).*", Pattern.CASE_INSENSITIVE); Matcher m = wd.matcher(str); if (m.find()) { System.out.println(m.group(1)); } java 怎么样调用delphi服务器?像http:xxxxxx/xxx/xx?ss=ss&xx=as JNA 讨论大开展 date=null java实现协同编辑器 一个简单的数组问题 请教一个跟DatabaseMetaData有关的问题? 菜鸟求一最小值a到最大值n之间所有数的算术平方之平均值。 客户端和服务器段不断传输数据流的问题 送分,如何用Javascript捕获用户在IE的操作 请问英语方面有专门的计算机专用词典日语有没有呢 看个小问题,不能出现界面 Swing为什么自动退出?
String str = "select * FROM tableName where id = \"1\"";
Pattern wd = Pattern.compile("(?<=from) +(\\w+).*",
Pattern.CASE_INSENSITIVE);
Matcher m = wd.matcher(str);
if (m.find()) {
System.out.println(m.group(1));
}