Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: update based on query results question
maybe it's all about columna being nullable, that's a very common
mistake:
create table a(m number, n number)
Table created
insert into a values(1,1)
1 row inserted
insert into a values(2,null)
1 row inserted
insert into a values(3,3)
1 row inserted
create table b(n number)
Table created
insert into b values(1)
1 row inserted
insert into b values(null)
1 row inserted
select * from a
M N
---------- ----------
1 1 2 3 3
select * from b
N
1
2 rows selected
drop table a
Table dropped
drop table b
Table dropped
Received on Tue Jul 05 2005 - 12:34:47 CDT