Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

if exist column in table drop sql query mysql

IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = N'CustomerVariable1Value' AND TABLE_NAME = 'MyTableName' AND TABLE_SCHEMA = 'MyDatabase')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #exist #column #table #drop #sql #query #mysql
ADD COMMENT
Topic
Name
3+6 =