create table PE_Soft(SoftIntro text,ChannelID integer)
insert into PE_Soft
select 'aaa ',1004
union all
select 'bbb ',1003
union all
select 'ccc ',1002 declare @ptr binary(16)
select @ptr=textptr(SoftIntro) from PE_Soft where ChannelID=1002
updatetext PE_Soft.SoftIntro @ptr null 0 'testing '
select * from PE_Soft drop table PE_Soft
insert into PE_Soft
select 'aaa ',1004
union all
select 'bbb ',1003
union all
select 'ccc ',1002 declare @ptr binary(16)
select @ptr=textptr(SoftIntro) from PE_Soft where ChannelID=1002
updatetext PE_Soft.SoftIntro @ptr null 0 'testing '
select * from PE_Soft drop table PE_Soft
解决方案 »
- 请教一个多条件语句。在线等。
- 将附件放到数据库里,数据库访问变慢。有什么方法能保障附件的安全性,又能不影响SQL Server的访问速度
- 求一sql语句
- 请问一个SQL函数
- 数据库表中存在恶意脚本
- 关于自定义函数的。取字符串
- 键列信息不足或不正确,更新影响到多行----这是什么意思?
- 如何在vb中調用sql的DTS包,請教各位大俠
- 帮我写写存储过程吧........................................................
- 菜鸟求助,通过分隔符$$将一列分割成几列
- mssql 怎样才能支持 set lock mode wait # 的语句呢?
- 如何启用数据库镜像的自动故障切换功能
用于存储大型非 Unicode 字符、Unicode 字符及二进制数据的固定长度和可变长度数据类型。Unicode 数据使用 UNICODE UCS-2 字符集。ntext可变长度 Unicode 数据的最大长度为 230 - 1 (1,073,741,823) 个字符。存储大小是所输入字符个数的两倍(以字节为单位)。ntext 在 SQL-92 中的同义词是 national text。text服务器代码页中的可变长度非 Unicode 数据的最大长度为 231-1 (2,147,483,647) 个字符。当服务器代码页使用双字节字符时,存储量仍是 2,147,483,647 字节。存储大小可能小于 2,147,483,647 字节(取决于字符串)。image可变长度二进制数据介于 0 与 231-1 (2,147,483,647) 字节之间。