Tulis pertanyaan pangkalan data (SQL)

A ready-to-use “Pengaturcaraan” AI prompt template, designed and tested with ChatGPT. Replace the (bracketed) parts below with your own needs.

Prompt template
Tulis SQL: 1) satu pertanyaan mengikut keperluan yang saya huraikan; 2) satu penerangan seksyen demi seksyen tentang apa yang ia lakukan; 3) tunjukkan kemungkinan isu prestasi (indeks tiada, imbasan jadual penuh) dan pembetulannya; 4) ingatkan saya kes sempadan (NULL, pendua, zon waktu).

Skema jadual: "huraikan jadual dan lajur"
Apa yang saya mahu tanya: "huraikan keperluan"

How to use this prompt

  1. Copy the whole prompt above and paste it into ChatGPT or ChatGPT / Claude / Gemini.
  2. Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
  3. If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.

Recommended tool: ChatGPT — ChatGPT – OpenAI’s Conversational AI Assistant