Dynamic SQL test data for date and time queries
SQL Tutorials Date & Time Functions Date Range Queries Dynamic Test Data
These dumps are generated from today's date. Download or copy a fresh version when testing queries such as DATE_SUB() date ranges , BETWEEN , WEEK() , and WEEKOFYEAR() .
Daily records: 370 days before and after today Copy to clipboard
Fresh CSV:
dt_table.php !wget -O dt_table.csv https://www.plus2net.com/sql_tutorial/dt_table.php
Records of different date ranges using DATE_SUB(), CURDATE() and BETWEEN() VIDEO
Previous 12 months to future 3 months This smaller dataset inserts one row every 10 days from about one year ago through about three months ahead.
Copy to clipboard Fresh CSV:
dt_table2.php !wget -O dt_table2.csv https://www.plus2net.com/sql_tutorial/dt_table2.php
Date and time records Copy to clipboard Fresh CSV:
dt_table_tm.php !wget -O dt_table_tm.csv https://www.plus2net.com/sql_tutorial/dt_table_tm.php
Author & Instructor at
plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery,
and web development at plus2net. The tutorials focus on clear explanations, working
examples, and code that readers can test and adapt while learning.
← Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
plus2net.com