mysql 查询数据库表信息,字段信息


 

 

#=======================================================================
#查询表信息
select table_name, table_comment, create_time, update_time from information_schema.tables where table_schema = (select database());
 

#=======================================================================
#查询字段信息(table_schema:表所在数据库,table_name:你要查的表)
select * from information_schema.columns where table_schema = 'zhufu' and table_name = 'himall_bank';  

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM