Sybase手册和大量示例声称我可以写:
create table run_log (
run_id integer not null default autoincrement
);
但Sybase 15表示default
答案 0 :(得分:5)
Sybase文档不是很好,结果是Sybase ASA,他们购买的其他产品,以及Sybase ASE(Server Enterprise),这是大多数人会想到的Sybase。
对于ASE15,它不是自动增量,它的身份,必须是数字,而不是整数
create table run_log (
runid numeric(12,0) identity
)