Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Regex 使用Scala解析组合器提取SQL表依赖项_Regex_Scala_Recursion_Sqldependency_Parser Combinators - Fatal编程技术网

Regex 使用Scala解析组合器提取SQL表依赖项

Regex 使用Scala解析组合器提取SQL表依赖项,regex,scala,recursion,sqldependency,parser-combinators,Regex,Scala,Recursion,Sqldependency,Parser Combinators,我想开发一个应用程序,从SQL语句中提取表依赖项,特别是SQL from子句和Join子句中引用的表 例如,SQL SELECT stmt如下所示: SELECT .... FROM <Table name> JOIN <list of tables and join condition> WHERE... GROUP BY ... ORDER BY... LIMIT .... 及 SELECT .... FROM <Table name> JOIN <

我想开发一个应用程序,从SQL语句中提取表依赖项,特别是SQL from子句和Join子句中引用的表

例如,SQL SELECT stmt如下所示:

SELECT .... FROM <Table name> JOIN <list of tables and join condition> WHERE... GROUP BY ... ORDER BY... LIMIT ....

SELECT .... FROM <Table name> JOIN <list of tables and join condition> WHERE a > (SELECT count(c) FROM ... )
SELECT .... FROM <Table name> JOIN <list of tables and join condition> ... 
insert into AbbrNames(AbbrName) select substring(LongName from 1 for 3) from LongNames 
SELECT EXTRACT(month FROM order_date) "Month", COUNT(order_date) "No. of Orders" FROM orders GROUP BY EXTRACT(month FROM order_date) ORDER BY "No. of Orders" DESC;