Как импортировать дамп SQL к таблице, не перезаписывая дублирующиеся поля

Убедитесь, что другие серверы Apache не запущены, поскольку при попытке доступа к нему в браузере даже с другим портом возникает ошибка. Зайдите в Finder и под устройством вы увидите значок lampp. Вы также можете открыть htdocs из любого редактора ide или кода, открыв файлы или проект, как только найдете значок lampp. Убедитесь, что вы смонтировали стопку.

5
задан alimango 25 May 2009 в 08:38
поделиться

1 ответ

Here is the link to the manual. You can specify whether to replace existing records.

--replace, -r

The --replace and --ignore options control handling of input rows that duplicate existing rows on unique key values. If you specify --replace, new rows replace existing rows that have the same unique key value. If you specify --ignore, input rows that duplicate an existing row on a unique key value are skipped. If you do not specify either option, an error occurs when a duplicate key value is found, and the rest of the text file is ignored.

If you are using phpmyadmin then you will have an option for this in the GUI as well.

5
ответ дан 14 December 2019 в 19:23
поделиться
Другие вопросы по тегам:

Похожие вопросы: