Answers for "export sql query to excel"

SQL
0

copying query result to excel

COPY (SELECT * FROM tracks WHERE genre_id = 6) TO '/Users/dave/Downloads/blues_tracks.csv' DELIMITER ',' CSV HEADER;
Posted by: Guest on June-20-2020
0

import excel to sql

You can also use OPENROWSET to import excel file in sql server.

SELECT * INTO Your_Table FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
                        'Excel 12.0;Database=C:tempMySpreadsheet.xlsx',
                        'SELECT * FROM [Data$]')
Posted by: Guest on March-08-2021

Code answers related to "export sql query to excel"

Code answers related to "SQL"

Browse Popular Code Answers by Language