mysql 数据表名,字段名查询
2017-05-16 11:33
204 查看
查询数据库中所有表名
select table_name from information_schema.tables where table_schema='csdb' and table_type='base table';
查询指定数据库中指定表的所有字段名column_name
select column_name from information_schema.columns where table_schema='csdb' and table_name='users'
select table_name from information_schema.tables where table_schema='csdb' and table_type='base table';
查询指定数据库中指定表的所有字段名column_name
select column_name from information_schema.columns where table_schema='csdb' and table_name='users'
相关文章推荐
- mysql删除某个字段重复的数据
- mysql时间字段的格式与编码转换, C#下 xml 存储时间数据的临时解决方案
- php获取mysql某数据表中所有字段
- mysql 查看数据表结构,查询数据表字段名
- mysql中修改数据库,数据库表,数据库表字段的编码问题
- JDBC 3种获得mysql插入数据的自增字段值的方法
- 如何查询Oracle,Sql Server,MySQL 中的数据库名称、数据表名称、字段名称
- mysql命令行命令和SQL语句,MySQL修改删除增加字段类型,字段数据等。。
- MySQL数据表字段内容的批量修改、清空、复制等更新命令
- mysql 整型 数据宽度, 字段的零填充和符号
- mysql替换字段里数据内容部分字符串
- MySQL 字段数据类型/长度
- MySQL导出表字段和数据(select into outfile的灵活使用)
- mysql命令行命令和SQL语句,MySQL修改删除增加字段类型,字段数据等。。
- MySQL 字段数据类型/长度
- JDBC 3种获得mysql插入数据的自增字段值的方法
- 在Mysql和Oracle中如何删除字段中的重复数据
- 研究PHP处理Mysql字段属性为UNSIGNED ZEROFILL的数据
- MySQL数据类型:TINYINT,SMALLINT,MEDIUMINT,INT,INTEGER,BIGINT;text,longtext,mediumtext,ENUM,SET等字段类型区别
- 怎么获取mysql中某一字段数据的后几位?(SUBSTRING)