We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38e13c4 commit d5eaad4Copy full SHA for d5eaad4
tsql/tsql.g4
@@ -220,7 +220,7 @@ create_database
220
221
// https://msdn.microsoft.com/en-us/library/ms188783.aspx
222
create_index
223
- : CREATE UNIQUE? clustered? INDEX id ON table_name_with_hint '(' column_name_list (ASC | DESC)? ')'
+ : CREATE UNIQUE? clustered? INDEX id ON table_name_with_hint '(' column_name_list_with_order ')'
224
(INCLUDE '(' column_name_list ')' )?
225
(WHERE where=search_condition)?
226
(index_options)?
@@ -1210,6 +1210,10 @@ full_column_name
1210
: (table_name '.')? id
1211
;
1212
1213
+column_name_list_with_order
1214
+ : id (ASC | DESC)? (',' id (ASC | DESC)?)*
1215
+ ;
1216
+
1217
column_name_list
1218
: id (',' id)*
1219
0 commit comments