感覺 批量執行sql應該是有 隱試事務的,所以不用事務是不是也可以?
uj5u.com熱心網友回復:
比如將多條sql陳述句 存入到一個 (c#)StringBuilder 中,然后一起提交uj5u.com熱心網友回復:
不可以,你可以自己試試,創建一下這個表,插入兩條資料,看執行結果
CREATE TABLE test(
[content] [NVARCHAR](3) NULL
)
[code=csharp]
StringBuilder strSql = new StringBuilder();
strSql.Append("INSERT INTO dbo.test(content) VALUES('124');");
strSql.Append("INSERT INTO dbo.test(content) VALUES('456789');");
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/264967.html
標籤:基礎類
上一篇:列印一個空心六角形
下一篇:pwnboxer無法連接服務器
