比如两个表 posts commments
其中都有字段 create_time
$field='create_time';
function test($filed){
}
能否根据字段名找出是哪个表?
1
phx13ye 2015 年 7 月 24 日
use information_schema;
SELECT * FROM COLUMNS WHERE COLUMN_NAME = '$filed'; |