向自增长表中插入数据可使用default填充自增长字段

比如

tm_adp是增长表,ID字段是自增长字段,再insert 插入时可设置id字段值为DEFAULT;

insert into tm_adp (`ID`,`TYPE_CODE`, `TYPE_NAME` ,`TYPE_NAME_CN` ,`TYPE_INDEX`,
  `PARENT_CODE`,`ORG`,`APP` , `CODE_PATH` ,`REMARK`)values (DEFAULT,'insuredName',	'insuredName'	,'被保险方','44',	'bussinessDictionary',	'3015',		NULL,'/3015/bussinessDictionary/',NULL);	

猜你喜欢

转载自blog.csdn.net/csdnliuxin123524/article/details/80662143