How to know identity column in DB2?
Page 1 of 1
How to know identity column in DB2?
The answer is:
SELECT TABNAME,COLNAME FROM SYSIBM.SYSCOLUMNS
WHERE IDENTITY = 'Y'
SELECT TABNAME,COLNAME FROM SYSIBM.SYSCOLUMNS
WHERE IDENTITY = 'Y'
srini- Posts : 68
Points : 150
Reputation : 0
Join date : 2013-12-16
Re: How to know identity column in DB2?
This query works
srini- Posts : 68
Points : 150
Reputation : 0
Join date : 2013-12-16
Re: How to know identity column in DB2?
The correct query is
SELECT TABNAME,COLNAME FROM SYSIBM.SYSCOLUMNS
WHERE DEFAULT = 'I'
SELECT TABNAME,COLNAME FROM SYSIBM.SYSCOLUMNS
WHERE DEFAULT = 'I'
srini- Posts : 68
Points : 150
Reputation : 0
Join date : 2013-12-16
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|