を挿入します。私はこの要求を持っている自動インクリメント
INSERT INTO E_COURR (ID_COURR, ID_TYPECOURRIEL, LL_COU_SUJET, TXT_COU_CONTENU)
VALUES (isnull((select max(isnull(ID_COURR,0))+1 from E_COURR WITH (HOLDLOCK, UPDLOCK);), 1, 'some text....', 'some text....');
GO
私は、このエラーメッセージがあります:あなたはID_COURRは、自動インクリメントはの世話をするような方法IDENTITYカラムとして宣言している必要があります
Msg 1046, Level 15 , State 1, Line 23
Subqueries are not allowed in this context. Only scalar expressions are allowed .
Msg 319, Level 15 , State 1, Line 23
Incorrect syntax near the keyword ' with '. If the statement is a common table expression or XMLNAMESPACES clause, the previous statement must end with a semicolon.
否定投票をした人は、私が自分の投稿を改善できる理由を与えることができます。ありがとうございました – Mercer