Answers for "check column name exists in all table sql"

SQL
3

search for column name in sql db when i don't know which table it is in

Select * from  INFORMATION_SCHEMA.COLUMNS
where COLUMN_NAME LIKE '%MyName%'
Posted by: Guest on September-23-2020
0

sql check if column exists

* Using the below query, You can check whether the table1 has a column named "id"

SHOW COLUMNS FROM table1 LIKE 'id'
Posted by: Guest on March-11-2021

Code answers related to "check column name exists in all table sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language