jeffmoore64
Programmer
How do I check for the exsistance of a column in a table and if it is not there add it.
TIA
Jeff
TIA
Jeff
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If Not Exists(Select *
From Information_Schema.Columns
Where Table_Name = '[!]YourTableName[/!]'
And Column_Name = '[!]YourColumnName[/!]')
Alter Table [!]YourTableName[/!] Add [!]YourColumnName[/!] int