Here is the code that doesn't work:
DECLARE @myTable TABLE (colName nvarchar(500), tableName nvarchar(500))
insert into @myTable
SELECT c.COLUMN_NAME AS colName, c.TABLE_NAME AS tableName, TABLE_SCHEMA tableSchema
FROM information_schema.COLUMNS as c
WHERE c.COLUMN_NAME like '%password%'
select * from @myTable
My error is:
[Error] Script lines: 1-7 -------------------------- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DECLARE @myTable TABLE (colName nvarchar(500), tableName nvarchar(500))
insert ' at line 1
Anyone have any ideas?