Skip to content

Commit 66b356f

Browse files
authored
Update create-type-transact-sql.md
1 parent bfe863f commit 66b356f

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

docs/t-sql/statements/create-type-transact-sql.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ms.author: wiassaf
4343
## Syntax
4444

4545
```syntaxsql
46-
-- User-defined Data Type Syntax
46+
-- User-defined Data Type syntax
4747
CREATE TYPE [ schema_name. ] type_name
4848
{
4949
[
@@ -117,7 +117,7 @@ column_name AS computed_column_expression
117117
```
118118

119119
```syntaxsql
120-
-- User-defined Memory Optimized Table Types Syntax
120+
-- User-defined Memory Optimized Table Types syntax
121121
CREATE TYPE [schema_name. ] type_name
122122
AS TABLE ( { <column_definition> [ ,... n ] }
123123
| [ <table_constraint> ] [ ,... n ]
@@ -130,33 +130,38 @@ column_name <data_type>
130130
[ COLLATE collation_name ] [ NULL | NOT NULL ] [
131131
[ IDENTITY [ (1 , 1) ]
132132
]
133-
[ <column_constraint> [ ... n ] ] [ <column_index> ]
133+
[ <column_constraint> [, ... n ] ] [ <column_index> ]
134134
135135
<data type> ::=
136136
[type_schema_name . ] type_name [ ( precision [ , scale ]) ]
137137
138138
<column_constraint> ::=
139-
{ PRIMARY KEY { NONCLUSTERED HASH WITH ( BUCKET_COUNT = bucket_count )
140-
| NONCLUSTERED } }
139+
{ PRIMARY KEY { NONCLUSTERED HASH WITH ( BUCKET_COUNT = bucket_count )
140+
| NONCLUSTERED }
141+
}
141142
142143
< table_constraint > ::=
143144
{ PRIMARY KEY { NONCLUSTERED HASH (column [ ,... n ] )
144145
WITH ( BUCKET_COUNT = bucket_count )
145-
| NONCLUSTERED ( column [ ASC | DESC ] [ ,... n ] ) } }
146+
| NONCLUSTERED ( column [ ASC | DESC ] [ ,... n ] )
147+
}
148+
}
146149
147150
<column_index> ::=
148151
INDEX index_name
149-
{ { [ NONCLUSTERED ] HASH WITH ( BUCKET_COUNT = bucket_count )
150-
| NONCLUSTERED } }
152+
{ [ NONCLUSTERED ] HASH WITH ( BUCKET_COUNT = bucket_count )
153+
| NONCLUSTERED
154+
}
151155
152156
< table_index > ::=
153157
INDEX constraint_name
154-
{ { [ NONCLUSTERED ] HASH (column [ ,... n ] ) WITH (BUCKET_COUNT = bucket_count)
155-
| [NONCLUSTERED] (column [ ASC | DESC ] [ ,... n ] )} }
158+
{ [ NONCLUSTERED ] HASH (column [ ,... n ] ) WITH (BUCKET_COUNT = bucket_count)
159+
| [ NONCLUSTERED ] ( column [ ASC | DESC ] [ ,... n ] )
160+
}
156161
157162
<table_option> ::=
158163
{
159-
[MEMORY_OPTIMIZED = { ON | OFF}]
164+
[ MEMORY_OPTIMIZED = { ON | OFF } ]
160165
}
161166
```
162167

0 commit comments

Comments
 (0)