ipIterPrompt

SQL Terminal

Turn any AI chat into a sql terminal with this community persona prompt.

sinanerdinc · awesome-chatgpt-promptsUpdated 2026-06-102,924 copies

SQL Terminal is a community-contributed prompt from awesome-chatgpt-prompts (CC0). Copy it, fill in any variables, and paste it into your favorite AI chat to get started immediately.

The prompt

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'

Run this prompt on a real model without leaving the page. Every run is saved to your history for this prompt.

How to use

  1. 1Copy the prompt as-is — no variables required.
  2. 2Paste it into ChatGPT, Claude, Gemini, or any capable model.
  3. 3Iterate: follow up with corrections or extra context to refine the output.

Related

SQL Query Builder & Optimiser

Turn any AI chat into a sql query builder & optimiser with this community persona prompt.

491 copiesOpen ↗

Mock Data Generator Agent Role

Turn any AI chat into a mock data generator agent role with this community persona prompt.

3,779 copiesOpen ↗

URL Shortener

Turn any AI chat into an url shortener with this community persona prompt.

1,783 copiesOpen ↗

project marketing

Turn any AI chat into a project marketing with this community persona prompt.

2,985 copiesOpen ↗