User Documentation
Ispirer Capabilities - Sybase Migration
Pricing
Sybase ASE Data Types - NVARCHAR
Versions: Sybase Adaptive Server Enterprise 15.x, 12.5.x, 12.0 and 11.x
| Sybase ASE - NVARCHAR | |
|---|---|
| Syntax | NVARCHAR[(n)] |
| Data | Variable-length character data, single-byte and multibyte character sets |
| Parameters | n is the maximum number of characters, optional |
| Range | 1 ⇐ n ⇐ pagesize/@@ncharsize |
| Default | n is 1 |
| Trailing Spaces | Removed when the value is stored |
| Empty String | “” is stored as a single space “ ” |
| Error Handling | Exceeding data truncated without warning if set string_rtruncation off specified (default), otherwise an error is raised |
| Storage Size | actual entry length * @@ncharsize |
| Synonyms | NCHAR VARYING, NATIONAL CHAR VARYING, NATIONAL CHARACTER VARYING |
| Standards | Sybase Transact-SQL Extension |
Sybase ASE NVARCHAR - Equivalents in Other Databases
| Database | Data Type and Conversion |
|---|---|
| Oracle | NVARCHAR2(n), 1 ⇐ n ⇐ 4000/charsize, Unicode - UTF-8 or UTF-16 |
| SQL Server | NVARCHAR(n | max), 1 ⇐ n ⇐ 4000, 2G if max is specified, Unicode - UCS-2 |
| MySQL | NVARCHAR(n), 1 ⇐ n ⇐ 21845, Unicode - UTF-8 |
| PostgreSQL | VARCHAR(n), 1 ⇐ n ⇐ 1G |
| Informix | NVARCHAR(n,r), 1 ⇐ n ⇐ 255, LVARCHAR(n), 1 ⇐ n ⇐ 32739 |
| HP Neoview | NVARCHAR(n), 1 ⇐ n ⇐ (32708 - size of other columns) |
| Ingres | NVARCHAR(n), 1 ⇐ n ⇐ 16000, Unicode - UTF-8 |
Related Data Types in Sybase ASE
| Data Types | |||
|---|---|---|---|
| Fixed-length character data | CHAR(n) | NCHAR(n) | UNICHAR(n) |
| Variable-length character data | VARCHAR(n) | UNIVARCHAR(n) | |
| Character large objects | TEXT | UNITEXT | |
All Data Types