有兩個(gè)數(shù)據(jù)庫(kù)。A , B 兩個(gè)數(shù)據(jù)庫(kù)下都有C表 表名一致 表結(jié)構(gòu)一致A數(shù)據(jù)庫(kù)C表里有數(shù)據(jù) B數(shù)據(jù)庫(kù)C表里沒(méi)有數(shù)據(jù)現(xiàn)在我想把A數(shù)據(jù)庫(kù)C表里的數(shù)據(jù)導(dǎo)入B數(shù)據(jù)庫(kù)C表里。insert into CQFJForest.sde.代碼_林種(OBJECTID, 代碼, 名稱(chēng), 拼音縮寫(xiě), 說(shuō)明) select a.OBJECTID,a.代碼,a.名稱(chēng),a.拼音縮寫(xiě),a.說(shuō)明from CQForestry.sde.代碼_林種 as awhere 代碼='B2508'代碼為唯一現(xiàn)在我這樣導(dǎo)入。但是會(huì)有一提示。Cannot insert explicit value for identity column in table '代碼_林種' when IDENTITY_INSERT is set to OFF.請(qǐng)問(wèn)怎么處理呢?
SQLSERVER 2005 表對(duì)表導(dǎo)入問(wèn)題。~
大話(huà)西游666
2018-08-30 22:22:36