取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集合。
本文标题:17/12/20 mysql中取值table所有列
本文链接:https://www.haomeiwen.com/subject/dzbnwxtx.html
网友评论