Home > Database > Mysql Tutorial > mysql 常用sql操作语句_MySQL

mysql 常用sql操作语句_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:16:18
Original
948 people have browsed it

获取数据库里所有表

SELECT TABLE_NAME,TABLE_ROWS FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='数据库名'
Copy after login

获取表里所有字段

select column_name from information_schema.columns where table_schema='数据库名' and table_name='表名'
Copy after login

 

 
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template