home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.sybase
- Path: sparky!uunet!psinntp!kripalu!harit
- From: harit@kripalu.com
- Subject: Re: NULL to NOT NULL
- Message-ID: <1992Dec16.173448.281@uunet!cbmvax!xmws!kripalu>
- Sender: harit@uunet!cbmvax!xmws!kripalu
- Reply-To: harit@kripalu.com
- Organization: Kripalu Center
- References: <BzB27G.7Ex@well.sf.ca.us>
- Distribution: usa
- Date: Wed, 16 Dec 92 17:34:48 GMT
- Lines: 19
-
- In article <BzB27G.7Ex@well.sf.ca.us> mharper@well.sf.ca.us (Michael J. Harper)
- writes:
- > If I create a column in a table which allows NULLs, is there a way to go back
- > later and change this column to be NOT NULL?
- > --
- > Michael J. Harper
- > mharper@well.sf.ca.us
-
- Only if you create a new table with the field declared NOT NULL and copy the
- data, delete the original, and rename the copy back to the name of the
- original. The problem of changing it in the original table is that SYBASE does
- not want to have to go check that each row has data for that field. In general
- SYBASE is not condusive to schema changes once you put data into the table.
- They prefer copies.
- --
- Michael Allen Latta
- Kripalu Center
- harit@kripalu.com
- (413)448-3288
-