|
I filed DERBY-353 for BY DEFAULT identity issues. This seems slightly
different: Satheesh ij> create table singleCol ( i int generated always as identity); 0 rows inserted/updated/deleted ij> INSERT INTO SingleCol VALUES(DEFAULT); 1 row inserted/updated/deleted ij> VALUES IDENTITY_VAL_LOCAL(); 1 ------------------------------- NULL <=================== Wrong value here. 1 row selected ij> create table doubleCol(i int generated always as identity, j int); 0 rows inserted/updated/deleted ij> insert into doubleCol(j) values 1; 1 row inserted/updated/deleted ij> VALUES IDENTITY_VAL_LOCAL(); 1 ------------------------------- 1 <==================== Correct value here. 1 row selected Daniel John Debrunner wrote: Mamta Satoor wrote: |
- Re: SQL Syntax : INSERT INTO when no columns to spec... Mamta Satoor
- Re: SQL Syntax : INSERT INTO when no columns to... Daniel John Debrunner
- Re: SQL Syntax : INSERT INTO when no column... Satheesh Bandaram
