Hi, I have a file with a series of sql statements, eg
To tidy up my database for testing purposes. I was wondering how I can read the file in (tidydb.sql) and run it line by line (ignoring comments and blank lines).
Appreciate the help. Thanks
Code:
-- truncate tables
truncate table test
truncate table test2
etc
To tidy up my database for testing purposes. I was wondering how I can read the file in (tidydb.sql) and run it line by line (ignoring comments and blank lines).
Appreciate the help. Thanks