sql server character
时间: 2023-09-20 14:05:35 浏览: 87
sql server
data types
SQL Server supports several character data types to store character and string data. These include:
1. CHAR: Fixed-length character data up to 8,000 characters.
2. VARCHAR: Variable-length character data up to 8,000 characters.
3. TEXT: Variable-length character data up to 2 GB.
4. NCHAR: Fixed-length Unicode character data up to 4,000 characters.
5. NVARCHAR: Variable-length Unicode character data up to 4,000 characters.
6. NTEXT: Variable-length Unicode character data up to 2 GB.
7. XML: Stores XML data.
8. JSON: Stores JSON data.
9. CSV: Stores comma-separated values data.
10. DATETIME: Stores date and time data.
11. DATE: Stores date data only.
12. TIME: Stores time data only.
13. TIMESTAMP: Stores a unique number that can be used for versioning.
14. UNIQUEIDENTIFIER: Stores a globally unique identifier (GUID).
阅读全文