1

我有大约 1000 行用于生成这样的数据库:

INSERT INTO cfg_locale VALUES(1,8,1,0,0,'Unknown Switch Type','Enum_CfgSwitchType')
INSERT INTO cfg_locale VALUES(1,8,1,1,0,'Nortel Meridian 1','Enum_CfgSwitchType')
INSERT INTO cfg_locale VALUES(1,8,1,2,0,'Rockwell Spectrum','Enum_CfgSwitchType')
INSERT INTO cfg_locale VALUES(1,8,1,3,0,'Rockwell Galaxy','Enum_CfgSwitchType')
INSERT INTO cfg_locale VALUES(1,8,1,4,0,'Nortel Communication Server 2000/2100','Enum_CfgSwitchType')
INSERT INTO cfg_locale VALUES(1,8,1,5,0,'Avaya Communication Manager','Enum_CfgSwitchType')

请注意,我需要将此数据库翻译成法语(娱乐不是一种选择)

以下是法语配置文件的示例:

INSERT INTO cfg_locale VALUES(1,8,29,0,0,'Type de HA inconnu','CFGHTNoHAType')
INSERT INTO cfg_locale VALUES(1,8,29,1,0,'Non spécifié','CFGHTColdStanby')
INSERT INTO cfg_locale VALUES(1,8,29,2,0,'Reprise intermédiaire','CFGHTWarmStanby')
INSERT INTO cfg_locale VALUES(1,8,29,3,0,'Reprise immédiate','CFGHTHotStanby')

我刚在想 :

REPLACE((cfg_locale VALUES(1,8,1,0,0,'Unknown Switch Type','Enum_CfgSwitchType')),INSERT INTO cfg_locale VALUES(1,8,29,0,0,'Type de HA inconnu','CFGHTNoHAType'))

这显然不起作用(SQL NOOB)

4

1 回答 1

0

If you want to update existing data you would have to do something like

Update cfg_locale set Field='Type de HA inconnu',Field2='CFGHTNoHAType'
Where Keyfield=xxxx

where could could be perhaps

 Where Field='Unknown Switch Type' and Field2='Enum_CfgSwitchType'
于 2012-12-06T18:50:54.193 回答