SQL Terminal — ChatGPT prompt: what it does, how to install
This prompt asks ChatGPT to act like a SQL terminal for a sample database with Products, Users, Orders, and Suppliers tables. Use it to see query results in a console-style format.
Open on GitHubWhat SQL Terminal does
The prompt sets a simple exchange: you enter a query, and ChatGPT returns a results table inside one code block, with no explanation. Its opening example selects the latest rows from Products, sorting by descending Id with SELECT TOP 10.
The sample database names four tables: Products, Users, Orders, and Suppliers. This is a terminal simulation based on the prompt, not a connection to your own database. For extra instructions in English, the prompt uses curly braces.
What it helps with
- inspect rows from the Products table with a SQL query
- request data from Users, Orders, or Suppliers
- get query output as a table without commentary
Example prompts for the agent
- Show the latest 10 products from
Products, ordered by descendingId. - Return every column and row from
Users. - Sort
OrdersbyIdand show the first 10 rows.
How to install SQL Terminal
How to use
Paste the text at the start of a chat or into project instructions
Manually: put the files in place
.claude/commands/prompts.csv.mdQuestions about SQL Terminal
How do I install SQL Terminal in ChatGPT?
Paste the prompt into a ChatGPT conversation and send it, then enter SQL queries.
What does SQL Terminal do?
It asks ChatGPT to simulate a terminal for a sample database and return query results as a table in one code block, without explanations.
Can SQL Terminal connect to my database?
The prompt describes a sample database with Products, Users, Orders, and Suppliers. It does not set up a connection to a user's database.
Source text
prompts.csv · CC0-1.0
I want you to act as a SQL terminal in front of an example database. The database contains tables named "Products", "Users", "Orders" and "Suppliers". I will type queries and you will reply with what the terminal would show. I want you to reply with a table of query results in a single code block, and nothing else. Do not write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so in curly braces {like this). My first command is 'SELECT TOP 10 * FROM Products ORDER BY Id DESC'
© sinanerdinc · CC0-1.0 · f/prompts.chat