Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 在SQL中插入长字符串_Sql Server - Fatal编程技术网

Sql server 在SQL中插入长字符串

Sql server 在SQL中插入长字符串,sql-server,Sql Server,是否有一种将长字符串插入SQL Server的方法,如: " [$('<input>').attr({'class':'inp'}), ['type:Input']]; " “[$('').attr({'class':'inp'}),['type:Input']] 不用把它分成几十块 愚蠢的问题,下面是愚蠢的答案: declare @longstring varchar(max) set @longstring = '[$('''').attr({''class'':''

是否有一种将长字符串插入SQL Server的方法,如:

"    [$('<input>').attr({'class':'inp'}), ['type:Input']];  "
“[$('').attr({'class':'inp'}),['type:Input']]

不用把它分成几十块

愚蠢的问题,下面是愚蠢的答案:

declare @longstring varchar(max)
set @longstring = '[$('''').attr({''class'':''inp''}), [''type:Input'']];'

你说不必把它分成几十块是什么意思?你的答案就是我所问的关于避免的。