Greetings,
In sybase there is a create default statement in order
to create a default object.
like
CREATE DEFAULT one as 1
go
this object then can be bound to different table columns as default
clause using
sp_bindefault default_name,"table_name.column_name"
like
sp_bindefault one, "test.a"
Does we have some equivalent for this in DB2. i mean through some mean
we can create some default objects that can be linked with different
table columns as default clause?
Any help will be appreciated.
TIA
Serge Rielau - 19 Dec 2005 14:55 GMT
> Greetings,
> In sybase there is a create default statement in order
[quoted text clipped - 15 lines]
> we can create some default objects that can be linked with different
> table columns as default clause?
There is no such thing in DB2 (or AFAIK in the SQL Standard)
Juts create you columsn with the appropriate defualt values.
Note that in DB2 V8.2 you can ALTER TABLE ALTER COLUMN SET DEFAULT
online as you wish.
Cheers
Serge

Signature
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab
pankaj_wolfhunter@yahoo.co.in - 19 Dec 2005 14:59 GMT