mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
添加SQL统计功能,统计SQL中所使用的表和字段
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@272 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user