Constants
literal formats (strings, N'', 0x binary, money, numeric, datetime)
What changes
- Input
- none
- Output or change
- none
Syntax at a glance
n/a (reference page)
Work example
Use literal values for fixed test data and simple expressions.
Use N for Unicode text and typed date or numeric literals where inference could change the result.
Check your work A literal's inferred type can affect precision, collation, and implicit conversion.
Open Microsoft Learn for full syntax, permissions, and details for your version.