We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a579892 + b535e00 commit 483fa10Copy full SHA for 483fa10
sql-queries-5/mysql-dump-by-query/mysql-dump-by-query.sql
@@ -0,0 +1,15 @@
1
+-- Using temporary table and mysqldump
2
+CREATE TEMPORARY TABLE september_enrollments AS
3
+SELECT * FROM Student
4
+WHERE enrollment_date >= '2024-09-01'
5
+AND enrollment_date <= '2024-09-30';
6
+
7
8
+-- Using SELECT INTO OUTFILE Statement
9
10
11
+AND enrollment_date <= '2024-09-30'
12
+INTO OUTFILE '/path/to/september_enrollements.csv'
13
+FIELDS TERMINATED BY ','
14
+ENCLOSED BY '"'
15
+LINES TERMINATED BY '\n';
0 commit comments