比如两个表 posts commments
其中都有字段 create_time
$field='create_time';
function test($filed){
}
能否根据字段名找出是哪个表?
1
phx13ye 2015-07-24 13:17:05 +08:00
use information_schema;
SELECT * FROM COLUMNS WHERE COLUMN_NAME = '$filed'; |