How to split these query from a single string into an array of single queries?
example:
"SELECT * FROM table1; SELECT * FROM table2;"
into
[
"SELECT * FROM table1;",
"SELECT * FROM table2;"
]
Well, I can't use javascript.split(";") because there can be semi-colon in the query as values. Like
"SELECT * FROM table 1 WHERE col LIKE ';'"
thanks.