https://www.cnblogs.com/w2011/archive/2013/01/04/2844143.html ...
https://www.cnblogs.com/w2011/archive/2013/01/04/2844143.html ...
-- 表加注释EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'注释内容' , @level0type=N'SCHEM ...
select column_name,column_comment,data_type from information_schema.columns where table_name='查询表名称' and table_schema='数据库名称' 通过以上语句可以查到数据库表 ...
select column_name,column_comment,data_type from information_schema.columns where table_name='查询表名称' and table_schema='数据库名称' 通过以上语句可以查到数据库表 ...
MySql的简单语法,常用,却不容易记住。当然,这些Sql语法在各数据库中基本通用。下面列出: 1.增加一个字段 alter table user add COLUMN new1 VARCHAR(20) DEFAULT NULL; //增加一个字段,默认为空alter table user ...
一、exec sp_rename 'student.name','names' --修改表字段名称 alter table student alter column courseid int--修改表的字段类型 alter table student add age int --z增加字段 ...
首先查看一个sql 1、首先存在一个数据表tmp 2、查看这个表的数据 这个数据十分不可读,那么就希望能格式化这些数据 3、set hive.cli.print.h ...