2010年8月4日

网上收藏的列转行

摘要: if exists (select * from INFORMATION_SCHEMA.TABLES where TABLE_NAME ='tb')drop table tbgocreate table tb(姓名 varchar(10) , 课程 varchar(10) , 分数 int,班级 varchar(10))insert into tb values('张三' , '语文' , 74,... 阅读全文

posted @ 2010-08-04 17:53 ruonanxiao 阅读(173) 评论(0) 推荐(0) 编辑

text varchar 类型比较

摘要: sqlserver2005+ 中1.char和varchar的区别char 固定长度,非 Unicode 字符数据,长度为 n 个字节。n 的取值范围为 1 至 8,000,varchar [ ( n | max ) ] 可变长度,非 Unicode 字符数据。n 的取值范围为 1 至 8,000。max 指示最大存储大小是 2^31-1 个字节。数据库两个字段. test1 char(10) '... 阅读全文

posted @ 2010-08-04 10:11 ruonanxiao 阅读(330) 评论(0) 推荐(0) 编辑

导航