Check if database table column exists

SHOW COLUMNS FROM Tablename WHERE FIELD = "Fieldname";

Leave a Reply