SELECT * FROM DatabaseName.DesireTable
INTO OUTFILE 'd:\\output.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n';
“No problem can be solved from the same level of consciousness that created it.” Albert Einstein (1879-1955)
SELECT * FROM DatabaseName.DesireTable
INTO OUTFILE 'd:\\output.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n';
CREATE TABLE new_table_name SELECT * FROM old_table_name;
An important point to note is that this query will not create
column attributes
and indexes as defined in the original table.CREATE TABLE new_table_name LIKE old_table_name;
INSERT INTO new_table_name SELECT * FROM old_table_name;
We couldn’t connect to the Analysis Services server. Make sure you’ve entered the connection string correctly... link