如何获取某个表的所有字段和类型? 还有Illuminate\Database\Schema\Builder下的方法如何使用?
select * from information_schema.COLUMNS where TABLE_SCHEMA = '数据库名' and table_name = '表名'
select * from information_schema.COLUMNS where TABLE_SCHEMA = '数据库名' and table_name = '表名'