1.获取特定表的所有列名: Select Name FROM SysColumns Where id=Object_Id('tableName') 参考:http://blog.csdn.net/wuxiaokaixinguo/article/details/8293039 2.获取特定表的所有列名和备注信息 SELECT a.column_id AS No, a.name AS 列名, isnull(g.[value],'-') AS 说明 FROM sys.columns a left jo
MySQL查看表结构SQL语句 = mysql查看表结构命令,如下: desc 表名; show columns from 表名; describe 表名; show create table 表名; use information_schema; #切换到information_schema数据库 select * from columns where table_name='表名'; #查看表信息 顺便提下MySQL常用语句: show databases; use 数据库名; show t
alter table test rename test1; --修改表名 ); --添加表列 alter table test drop column name; --删除表列 ) --修改表列类型 ) )--修改表列名 语句 set names utf8;用于设定数据库编码,让中文可以正常显示. 1.创建数据库:CREATE DATABASE `database` CHARACTER
Mysql 下面是mysql获取数据库所有表的语句 select table_name from information_schema.TABLES where TABLE_SCHEMA='Username' information_schema这个是数据系统用来保存数据表的总表 select table_name tableName, engine, table_comment tableComment, create_time createTime from information_sche