Sample SQL File Download
- sample1.sql465 bytesDownload sample sql file
- sample2.sql2.2 KBDownload sample sql file
- sample3.sql1.8 KBDownload sample sql file
Sample sql file
A .sql file is a plain-text script of SQL statements — CREATE TABLE, INSERT, SELECT, and so on — run by a database client or migration tool against a relational database.
SQL files are how schema definitions, seed data, migrations, and ad-hoc queries get version-controlled and shared between environments, across every major database (PostgreSQL, MySQL, SQLite, SQL Server).
The samples below use only fictional placeholder data. Use them to test a SQL parser or formatter, check editor syntax highlighting, or exercise an import tool with DDL, joins, transactions, CTEs, and window functions.