通过数据库的表名查询数据库字段

xiaoxiao2021-02-28  77

 select column_name from information_schema.columns  where table_name='表名'; 将表名替换即可。如果表名相同,则在末尾加上一句AND table_schema = '数据库名';
转载请注明原文地址: https://www.6miu.com/read-72711.html

最新回复(0)