0

Where I can get column type name from sybase iq SQL

select * from syscolumn
select distinct column_type from syscolumn --- value is only R

Where can I get like int, varchar, etc..?

select * from systypes

How to relate with syscolumns?

Rikesh
  • 26,156
  • 14
  • 79
  • 87
user2301515
  • 4,903
  • 6
  • 30
  • 46

1 Answers1

3

Since MS SQL Server share a lot of design features with Sybase and this works with MS SQL Server it should work with Sybase ASE too (although I haven't tried it due to lack of Sybase server):

select c.name as column_name, t.name as type_name 
from syscolumns c
join systypes t on c.type = t.type

Looking at the Sybase Adaptive Server Enterprise 15.7 documentation for syscolumns and systypes this seems correct.

jpw
  • 44,361
  • 6
  • 66
  • 86