I am using Sybase DB with TSQL.
I am able to view all the custom data types in my DB, however I cannot see the underlying native data type (INT, VARCHAR, CHAR, …) that they wrap around.
The command I used was :
SELECT * FROM systypes
This displays all the custom data type names, but not their underlying native data types.
Does anyone know how I can view the native data type for custom data types in Sybase DB?
Thanks.
First add a type:
Then you have two possibilities.
Using
sp_help:Or, at least for sybase 15.0.3, do the following query:
Note, I made this query seeing the code in
sp_helpstored procedure. If you know there’s a System SP that does part of what you want, just check its code at syssystemprocs database.