Skip to main content
prompt GP ChatGPT

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 GitHub

What 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 descending Id.
  • Return every column and row from Users.
  • Sort Orders by Id and 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

Questions 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

Similar prompts

All prompts for Data and databases →

From the same set133

The whole set →
IT Architect A system design prompt turning the model into an IT architect. It structures how to integrate applications into an existing IT environment. GP ChatGPT ★ 174,676repo stars Developer Relations Consultant This prompt reviews a software package through a Developer Relations lens, covering its docs, community activity, and competitors. Use it to identify gaps and gather product context. GP ChatGPT ★ 174,676repo stars Tech Reviewer This prompt turns a chat into a tech reviewer: name a device or service and get a breakdown with pros, cons, features and comparisons to rivals. GP ChatGPT ★ 174,676repo stars Smart Domain Name Generator Turns ChatGPT or Claude.ai into a concise domain name generator. Give it your business idea, and it returns a focused list of short web addresses. GP ChatGPT ★ 174,676repo stars Web Design Consultant A web design consultant prompt: describe an organization and its site, and the model proposes an interface and features that serve its business goals. GP ChatGPT ★ 174,676repo stars Cyber Security Specialist Turns the chat model into an information security advisor that evaluates how data is stored and proposes defensive measures against attackers. GP ChatGPT ★ 174,676repo stars UX/UI Developer This prompt turns a chat into a UX/UI developer: describe your product and get ideas for improving the user experience. GP ChatGPT ★ 174,676repo stars Excel Sheet This prompt turns the chat into a ten-row text grid with columns A through L: you name the values and formulas, and the reply holds just the finished table. GP ChatGPT ★ 174,676repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor