摘要: DECLARE @xml XML; SET @xml = CONVERT(XML, '<x><![CDATA[' + replace(CONVERT(VARCHAR(MAX), ‘分隔的字符串’), '要分割的标识', ']]></x><x><![CDATA[') + ']]></x>' selec 阅读全文
posted @ 2019-11-13 14:22 时光不负有心人 阅读(259) 评论(0) 推荐(0)
摘要: SqlParameter[] SqlPar = { new SqlParameter("@OrgID", orgid), new SqlParameter("@Count", SqlDbType.Int, 12) }; SqlPar[1].Direction = ParameterDirection 阅读全文
posted @ 2019-04-10 11:23 时光不负有心人 阅读(1603) 评论(0) 推荐(0)
摘要: delete top(N) from table update top(n) table set column=‘’ from table 阅读全文
posted @ 2019-03-25 17:10 时光不负有心人 阅读(815) 评论(0) 推荐(0)
摘要: select '(添加指定的内容)'+columnName from Table for xml path('') 阅读全文
posted @ 2019-02-18 10:06 时光不负有心人 阅读(151) 评论(0) 推荐(0)
摘要: SELECT LOWER(REPLACE(LTRIM(NEWID()),'-','')) 阅读全文
posted @ 2019-01-22 16:23 时光不负有心人 阅读(466) 评论(0) 推荐(0)