语法:
insert into tablename (字段1,字段1) output inserted.id values ('hhh','123');
inserted.id的id是你表的id,执行此语句就可以返回自增的id
例子:
insert into applyinfo (a_hospital,a_barcode) output inserted.a_id values ('1','2');
语法:
insert into tablename (字段1,字段1) output inserted.id values ('hhh','123');
inserted.id的id是你表的id,执行此语句就可以返回自增的id
例子:
insert into applyinfo (a_hospital,a_barcode) output inserted.a_id values ('1','2');
有建议,请留言!