1 ) Let say the Query is,
Select * from Users;
I need "Users" from above query. Also It could be more than one table name.
2 ) Let say the Query is,
Select 1 from pg_sleep(1);
Select current_user;
I need "pg_sleep", "*current_user" from above query. Also It could be more than one function.
I tried with net.sf.jsqlparser, However I could get tablenames only using this package. Unable to get functions list.
Is there anyway to get these functions/tablenames ?
You used the net.sf.jsqlparser library in the Java programming language to extract the table names and contents from the relevant queries, and you were able to successfully extract the table names. However, you are having trouble getting capacity. Below you can find an example code to solve this situation