COLLATE clause
COLLATE: sets collation for comparison, sorting, or a column definition
What changes
- Input
- a character expression or column definition
- Output or change
- same value with a new collation
Syntax at a glance
COLLATE { <collation_name> | database_default }
Work example
A schema review needs the rules for comparing and sorting character data.
List language, case, accent, width, kana, and encoding needs before choosing a collation.
Check your work The selected collation produces the intended equality and sort behavior for test words.
Open Microsoft Learn for full syntax, permissions, and details for your version.