Dynamic SQL test data for date and time queries

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

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()

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.

Fresh CSV: dt_table2.php
!wget -O dt_table2.csv https://www.plus2net.com/sql_tutorial/dt_table2.php

Date and time records

Fresh CSV: dt_table_tm.php
!wget -O dt_table_tm.csv https://www.plus2net.com/sql_tutorial/dt_table_tm.php



Subscribe to our YouTube Channel here



plus2net.com




SQL Video Tutorials










✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer