varchar & nvarchar 字段“在输入很少字符后”,后面的位置不会被空格填充。而是char & nchar 才会这样
解决方案 »
- update 能不能一次更新所有字段!(就象insert into table1 select * from table2一样)??
- 高分求,一个有难度的sql语句
- 关于求和的算法
- 触发器 同个服务器上多个实例 与跨服务器 有不同吗?
- 关于join建内联表的问题
- 请问:我要 create function ,将一个表名作为参数传入,应该怎么做?
- 请教有关在FOXPRO FOR DOS 下焦点消失的问题,急急急,先行谢过!
- 我想知道一个往sql server里面添加数据得很快的方法!谢谢了!不要说用ADO ADDNEW
- 难题,一条sql语句!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
- 怎样用ADO创建一个Access数据库?
- 请教?在win98环境中,什么数据库引擎最快?
- 请教关于动态建表的问题!!!
to windindance(风之舞) :
SQLServer去掉空格用:Rtrim(),Ltrim()
Vchar主要是用在较长的字段,而且字段内容并不需要太多改动的地方.
*varchar is Variable-length non-Unicode character data with length of n bytes. n must be a value from 1 through 8,000.Storage size is n bytes.
*nchar is Fixed-length Unicode character data of n characters. n must be a value from 1 through 4,000. Storage size is two times n bytes.
*nvarchar is Variable-length Unicode character data of n characters. n must be a value from 1 through 4,000. Storage size, in bytes, is two times the number of characters entered. The data entered can be 0 characters in length.
上面这段是从sql server book on_line 中copy的,hope used for you!