0

SQLファイルから失ったデータを復元しようとしています。すべてのデータ、または特定の部分の周りにIF NOT EXISTを挿入できるかどうか疑問に思っていますか?たとえば、私はこれを500行以上持っています:

INSERT INTO `TOWNY_RESIDENTS` (`name`, `town`, `lastOnline`, `registered`, `isNPC`, `title`, `surname`, `protectionStatus`, `friends`, `townBlocks`, `town-ranks`, `nation-ranks`) 
VALUES
('003497', '', 1345023973086, 1344596322606, 0, '', '', 'residentBuild,residentDestroy,residentSwitch,residentItemUse', '', '', NULL, NULL),
('007belg', '', 1359561715886, 1359561236484, 0, '', '', 'residentBuild,residentDestroy,residentSwitch,residentItemUse', '', '', '', ''),
('00Landmine', '', 1360592736927, 1360592672899, 0, '', '', 'residentBuild,residentDestroy,residentSwitch,residentItemUse', '', '', '', '')
4

1 に答える 1

0

ignore で試しましたか?

INSERT IGNORE INTO `TOWNY_RESIDENTS`
(`name`, `town`, `lastOnline`, `registered`, `isNPC`, `title`, `surname`, `protectionStatus`, `friends`, `townBlocks`, `town-ranks`, `nation-ranks`)
VALUES ('003497', '', 1345023973086, 1344596322606, 0, '', '', 'residentBuild,residentDestroy,residentSwitch,residentItemUse', '', '', NULL, NULL)
于 2013-03-08T15:08:25.213 に答える