Sybase Adaptive Server 11
 
Pivot --> Datatype (Sybase Adaptive Server 11)
Pivot
Condition
Datatype
P-AutoIdentifier
 
timestamp
P-Binary
 
binary(@L)
P-Boolean
 
bit
P-Byte
 
bit
P-Character
Not Unicode and L<256
char(@L)
Unicode and L<256
nChar(@L)
L>255 or L ø
text
P-Currency
 
money
P-Date
 
smalldatetime
P-Datetime
 
datetime
P-Decimal
0<L<39 and D not ø
decimal(@L,@D)
(L>9 and D ø) or (1<L<38 and D not ø)
float
4<L<10 and D ø
int
2<L<5 and D ø
smallint
(L<3 and D ø) or L ø
tinyint
P-Double
 
double precision
P-Float
 
float
P-Integer
 
int
P-Long Integer
 
int
P-Long Real
 
real
P-Multimedia
 
image
P-Numeric
(L>9 and D ø) or (1<L<38 and D not ø)
float
4<L<10 and D ø
int
0<L<39 and D not ø
numeric(@L,@D)
2<L<5 and D ø
smallint
(L<3 and D ø) or L ø
tinyint
P-Real
 
real
P-Smallint
 
smallint
P-String
Not Unicode
char(@L)
Unicode
nChar(@L)
P-Text
 
text
P-Time
 
datetime
P-Timestamp
 
timestamp
P-Tinyint
 
tinyint
P-Varbinary
 
varbinary(@L)
P-Varchar
Unicode
nVarChar(@L)
Not Unicode
varchar(@L)
 
Datatype --> Pivot (Sybase Adaptive Server 11)
Datatype
Condition
Pivot
binary(L)
 
P-Binary
bit
 
P-Boolean
char(L)
 
P-String
datetime
 
P-Datetime
decimal(L,D)
 
P-Decimal
double precision
 
P-Double
float
 
P-Float
image
 
P-Multimedia
int
 
P-Integer
money
 
P-Currency
numeric(L,D)
 
P-Numeric
real
 
P-Real
smalldatetime
 
P-Date
smallint
 
P-Smallint
text
 
P-Character
timestamp
 
P-Timestamp
tinyint
 
P-Tinyint
varbinary(L)
 
P-Varbinary
varchar(L)
 
P-Varchar