Extension for SQL queries. SQL is a file extension for a Structured Query Language file format written in ASCII. SQL files are used by database products. A SQL file typically contains queries to modify the structure of a relational database -- to insert, delete, update or extract data. SQL files are compatible with many database programs.