Ispirer Website Ispirer Capabilities - Sybase Migration Free Trial

Sybase ASE Data Types - UNIVARCHAR

Versions: Sybase Adaptive Server Enterprise 15.x, 12.5.x, 12.0 and 11.x

Sybase ASE - UNIVARCHAR
Syntax UNIVARCHAR[(n)]
Data Variable-length character data, Unicode character set
Parameters n is the maximum number of characters, optional
Range 1 ⇐ n ⇐ pagesize/@@unicharsize
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 * @@unicharsize
Synonyms UNICODE CHAR VARYING, UNICODE CHARACTER VARYING
Standards Sybase Transact-SQL Extension

Sybase ASE UNIVARCHAR - 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 VARCHAR(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) NVARCHAR(n)
Character large objects TEXT UNITEXT

All Data Types


© 1999-2024, Ispirer Systems, LLC. All Rights Reserved.