#獲取數據表的所有字段信息
SELECT C.* from information_schema.COLUMNS C where table_name = 'baseinfo_vehicle';
#拼接數據表的所有字段名
SELECT GROUP_CONCAT(CONCAT(" `",C.COLUMN_NAME,"`")) from information_schema.COLUMNS C where table_name = 'baseinfo_vehicle';
#獲取數據表的所有不允許爲空的字段信息
SELECT C.* from information_schema.COLUMNS C where table_name = 'baseinfo_vehicle' AND C.IS_NULLABLE="NO";
#拼接數據表的所有不允許爲空的所有字段名
SELECT GROUP_CONCAT(CONCAT(" `",C.COLUMN_NAME,"`")) from information_schema.COLUMNS C where table_name = 'baseinfo_vehicle' AND C.IS_NULLABLE="NO";