SQL 插入查询的最大ID 号 进行批量

 

 

INSERT INTO tbl_image_language (
code,
docomo_cd,
au_cd,
softbank_cd
)
SELECT DISTINCT((SELECT max(code ) + 1 FROM tbl_image_language)) ,docomo_cd,au_cd,softbank_cd FROM tbl_image_language 

  

posted on 2015-05-14 15:16  手撕高达的村长  阅读(255)  评论(0编辑  收藏  举报

导航