_覓 | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁 |
FrontPage › 貎朱Μ蟆郁骸襯殊朱覦る覦覯
|
|
-- ろ 企 CREATE TABLE dbo.Test001 (seq int IDENTITY(1, 1) NOT NULL); GO -- ろ 一危 10覯 j鍵 INSERT dbo.Test001 DEFAULT VALUES; GO 10 -- 覲襦 螳語る 覦覯 DECLARE @intMaxSeq int, @nvcStmt nvarchar(4000), @nvcTableName sysname; SET @nvcTableName = N'dbo.Test001'; SET @nvcStmt = N'SELECT @intMaxSeq = MAX(seq) FROM ' + @nvcTableName; EXEC sp_executesql @nvcStmt, N'@intMaxSeq int OUTPUT', @intMaxSeq OUTPUT; SELECT @intMaxSeq;
鏤
|
蠍磯 譬 所 曙 讌 襷. 豢朱 讌 襷. 蠏碁Μ螻 讌豎るり 朱 殊 覩語煙 豈 企る讌 襷. (豈蠏朱) |