Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / December 2005

Tip: Looking for answers? Try searching our database.

Equivalent to CREATE DEFAULT in Sybase

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pankaj_wolfhunter@yahoo.co.in - 19 Dec 2005 06:43 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.