Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Probably simple sql question

Probably simple sql question

From: Doug Cowles <dcowles_at_bigfoot.com>
Date: Thu, 20 May 1999 14:24:25 -0400
Message-ID: <37445359.7644AB94@bigfoot.com>


I need to do a large update and can't quite figure it out. Essentially,

I have two tables of the same name and fieldtypes in two different schemas.
The only difference is that on one table, a field called "offset" has values in
it and on the other table (table B), it doesn't. The idea is to get table b to
look exactly like table a.

I tried

Update B set offset =
(select offset from A where primarykey = B.primarykey)

and got
cannot update mandatory (NOT NULL) column to NULL. The offset is not null on both tables, so there are no null values. My correlation
logic must be askew.

Would appreciate any advice,

Received on Thu May 20 1999 - 13:24:25 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US