2011-11-09 59 views
0

是否有插入长字符串到SQL Server一样的方式:插入长字符串到SQL

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

而无需将其分解成几十块?

+4

你是什么意思**无需将其分解成几十块的**? – Chandu

回答

1

愚蠢的问题,这里是愚蠢的答案:

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

你的回答是我在回避的问题。 – user1009749