Another similar problem, this time with Cloudscape. I managed to get the data types of the table columns with the following SQL query:
Code:
SELECT c.columnname, c.columndatatype FROM sys.syscolumns c,sys.systables t
WHERE c.referenceid = t.tableid AND t.tablename = '<TABLE>'
This works so far except for the fact that the output is sorted alphabetically. Anybody knows whether it's possible to view the data types on Cloudscape in the order they appear in the table (which is the default on DB2 UDB)? Thanks.
