Skip to main content
added 2 characters in body
Source Link
bluish
  • 27.5k
  • 28
  • 125
  • 185

This is all over the internet. BasicBasic idea is to check the system table INFORMATION_SCHEMA.COLUMNSINFORMATION_SCHEMA.COLUMNS for your column. I'mI'm assuming "none exists" applies to the name of the column only.

http://snippets.dzone.com/posts/show/4663   

http://www.genexbs.com/blog/gbs.php/2008/08/09/how-to-check-if-column-exists-in-mysql-t

This is all over the internet. Basic idea is to check the system table INFORMATION_SCHEMA.COLUMNS for your column. I'm assuming "none exists" applies to the name of the column only.

http://snippets.dzone.com/posts/show/4663  http://www.genexbs.com/blog/gbs.php/2008/08/09/how-to-check-if-column-exists-in-mysql-t

This is all over the internet. Basic idea is to check the system table INFORMATION_SCHEMA.COLUMNS for your column. I'm assuming "none exists" applies to the name of the column only.

http://snippets.dzone.com/posts/show/4663 

http://www.genexbs.com/blog/gbs.php/2008/08/09/how-to-check-if-column-exists-in-mysql-t

Source Link
Jody
  • 8.3k
  • 4
  • 29
  • 29

This is all over the internet. Basic idea is to check the system table INFORMATION_SCHEMA.COLUMNS for your column. I'm assuming "none exists" applies to the name of the column only.

http://snippets.dzone.com/posts/show/4663 http://www.genexbs.com/blog/gbs.php/2008/08/09/how-to-check-if-column-exists-in-mysql-t