.sql SQL code
Text & source code
| MIME type | application/sql |
|---|---|
| Description | SQL code |
| Category | Text & source code |
| Based on | text/plain |
Frequently asked questions
What is a .sql file?
A .sql file is a “SQL code” (MIME type application/sql).
How do I open a .sql file?
With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.
How can you tell a genuine .sql file?
No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.sql shows the guessed type.
Which format is .sql based on?
Technically a .sql file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.
Which MIME type belongs to .sql?
The MIME type is application/sql. In the Apache web server: AddType application/sql .sql; in nginx: types { application/sql sql; }.