取table所有字段名:
sql="select COLUMN_NAME from information_schema.COLUMNS where table_name = 'm_list' and table_schema = 'testdb'"
取table中所有列:
sql = "select * from match_list"
---^ 得到该表所有字典数据的list集合。
取table所有字段名:
sql="select COLUMN_NAME from information_schema.COLUMNS where table_name = 'm_list' and table_schema = 'testdb'"
取table中所有列:
sql = "select * from match_list"
---^ 得到该表所有字典数据的list集合。