I'm trying to find out if a string contains certain SQL commands that alter the database by:
Right now I'm doing a strpos search for ALTER, CREATE and DROP which should work.
Are there any other commands that do the things above and that I should include in my search?
Note that I don't need this for security reasons. I just need to know if the table schema changed, so I can update my local cache of the schema info...
For some DBMS (PostgreSQL, MS SQL Server, Informix) SELECT ... INTO ... can create a new table.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With