表資料備份到另一張表:
select * into desttbl from srctbl
條件:desttbl表不存在
insert into desttbl(fld1, fld2) select fld1, 5 from srctbl
條件:desttbl表存在
修改資料庫列資料類型:
alter table [table name] modify [column name] varchar(32) null
增加列:
alter table [table name] add [column name] varchar(10) null
删除列:
alter table [table name] drop [column name]
同時修改多列:
update [table name] set [column1]=[value1], [column2]=[value2] where ......
derbydb建立自增字段: