问题描述
我正在尝试编写一些代码来插入或更新我的
SQL Server 2000数据库中的文本字段。 SQL语句是使用来自
a表单的提交创建的,文本来自< textarea>,因此通过请求将
放入SQL语句中(&]栏位")。但是,由于SQL Server 2000和文本字段中的限制
,我不能使用文本超过8000字节的简单更新或插入
命令。
是否有人有任何示例语句可以帮助我更新该字段
数据量更大?我尝试过使用WRITETEXT函数和
UPDATETEXT函数,但很少或没有成功。帮助!!
放置
限制
Insert
字段
和
也许你可以展示你正在尝试的东西,我们可以建议
替代。
例如,你不能说UPDATE table SET textColumn = textColumn +
''foo''"
但是,一次更改整个值应该没问题
方式。
I am trying to write some code that inserts or updates a text field in my
SQL Server 2000 database. The SQL statement is created using a submit from
a form, and the text is coming from a <textarea>, and therefore being placed
into the SQL statement via a Request("field"). However, due to limitations
in SQL Server 2000 and text fields, I can not use a simple Update or Insert
command with text over 8000 bytes.
Does anybody have any sample statements that will help me update that field
with larger amounts of data? I have tried using the WRITETEXT function and
UPDATETEXT function with little or no success. Help!!
from
placed
limitations
Insert
field
and
Maybe you could show what you are trying and we could suggest an
alternative.
For example, you can''t say "UPDATE table SET textColumn = textColumn +
''foo''"
However, it should be no problem to change the entire value at one time that
way.
这篇关于更新SQL Server 2000中的文本字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!