Is there a way to return a list of Column names, data types and if they have default values what they are? I can get the Column names like this...
... but it would be really useful to be able also return the data types and if they have a default value or not UPDATE Figured out I can get the Column Name, Type, Nullable and Primary Key with
Just need to find a way to return the default value and I've cracked the job! Thank you |
SYSTABCOL."default" That got me on the correct path - this gives me all I need
(19 Feb '17, 11:38)
gchq
What is max_identity? It seems to appear for autoincrement primary key columns (e.g. 44) whilst others are zero....
(19 Feb '17, 15:54)
gchq
Replies hidden
Yes, that's for (global) autoincrement defaults - which need not to be primary keys. Cf. that FAQ...
(19 Feb '17, 16:32)
Volker Barth
|