添加SQL统计功能,统计SQL中所使用的表和字段

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@272 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-06-22 02:08:22 +00:00
parent 18cc6c3a21
commit 0388f78648
3 changed files with 60 additions and 3 deletions
@@ -13,7 +13,7 @@ import com.alibaba.druid.stat.TableStat.Column;
public class OracleSchemaStatVisitorTest_Subquery extends TestCase {
public void test_0() throws Exception {
String sql = "SELECT id2, name2 FROM (select id, name from users limit 10) a";
String sql = "SELECT id2, name2 FROM (select id, name from users where ROWNUM < 10) a";
OracleStatementParser parser = new OracleStatementParser(sql);
List<SQLStatement> statementList = parser.parseStatementList();