Notes on SQL-related stuff.
GROUP_CONCAT
and DISTINCT
NULL
with a different valueSELECT
query-- create a temporary table
CREATE TEMPORARY TABLE exportTable AS (your_query);
-- show the columns
COLUMNS FROM exportTable; SHOW
TRUNCATE
all
tables in a databaseSET FOREIGN_KEY_CHECKS = 0;
truncate table "yourTableName";
SET FOREIGN_KEY_CHECKS = 1;
A data set of 9 million tuples is nothing for a relational database. For maintaining sufficient performance as always use indexes and all will be well.