更新时间:2023-12-01 08:12:22
这对我来说很好.
SHOW COLUMNS FROM `table` LIKE 'fieldname';
使用PHP就像...
With PHP it would be something like...
$result = mysql_query("SHOW COLUMNS FROM `table` LIKE 'fieldname'");
$exists = (mysql_num_rows($result))?TRUE:FALSE;