有兩個數(shù)據(jù)庫。A , B 兩個數(shù)據(jù)庫下都有C表 表名一致 表結(jié)構(gòu)一致A數(shù)據(jù)庫C表里有數(shù)據(jù) B數(shù)據(jù)庫C表里沒有數(shù)據(jù)現(xiàn)在我想把A數(shù)據(jù)庫C表里的數(shù)據(jù)導(dǎo)入B數(shù)據(jù)庫C表里。insert into CQFJForest.sde.代碼_林種(OBJECTID, 代碼, 名稱, 拼音縮寫, 說明) select a.OBJECTID,a.代碼,a.名稱,a.拼音縮寫,a.說明from CQForestry.sde.代碼_林種 as awhere 代碼='B2508'代碼為唯一現(xiàn)在我這樣導(dǎo)入。但是會有一提示。Cannot insert explicit value for identity column in table '代碼_林種' when IDENTITY_INSERT is set to OFF.請問怎么處理呢?
- 2 回答
- 0 關(guān)注
- 734 瀏覽
添加回答
舉報(bào)
0/150
提交
取消