- 论坛徽章:
- 1
|
本帖最后由 snow888 于 2010-04-21 12:33 编辑
建表脚本- create table test (
- a numeric(19,0) not null generated by default as identity( minvalue +1 maxvalue +200000),
- b char(8),
- constraint pk_test primary key (a));
复制代码 插入数据时使用如下语句- db2 "insert into test values('aaaaaa')"
复制代码 居然报错了,错误信息如下:
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0117N The number of values assigned is not the same as the number of
specified or implied columns. SQLSTATE=42802
何解???- insert into test (b) values('aaaaa')
复制代码 OK! |
|