SQL/MySQL/Backup Load/Export — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 10:15, 26 мая 2010
Exporting from MySQL
USE <database_name>;
SELECT *
INTO OUTFILE "<file_name.txt>"
FROM <table_name>;
Exporting from MySQL indicating "," terminator
USE <database_name>;
SELECT *
INTO OUTFILE "<file_name.csv>"
FIELD TERMINATED BY ","
FROM <table_name>;
Exporting from MySQL indicating the terminator
USE <database_name>;
SELECT *
INTO OUTFILE "<file_name.txt>"
FIELD TERMINATED BY ""
FROM <table_name>;