How to delete a row in SQL Server via Identity? -


what's proper syntax row delete via identity column? query:

    "delete [table] [column 'count'] = 1" 

works. while same query identity column 'index' fails.

    "delete [table] index = 1" 

i'm trying delete last inserted row ident_current([table]).

index reserved word. have escape square brackets.

delete [table] [index] = 1 

and sure give special "thanks" whoever designed schema column name in first place.


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -