0

我将如何做到(这只是示例)不返回错误?

$field_in = this, that

$result = mysql_query("SHOW COLUMNS FROM " . $table. " WHERE Field IN ( ".$field_in." )")
4

1 回答 1

2
$result = mysql_query( 
   "select *
    from INFORMATION_SCHEMA.COLUMNS c
    where c.TABLE_SCHEMA = '" . $table. "' 
    and c.COLUMN_NAME IN ( ".$field_in." )")
于 2012-06-29T14:03:54.313 回答