把「我想找上個月買超過 3 次的客戶」這種白話,轉成可執行 SQL + 解釋,附上你資料表結構就更準。
Write a SQL query for: {{request}}.
Database: {{dialect}} (e.g. SQLite / PostgreSQL / MySQL).
My relevant tables and columns:
{{schema}}
Give the query, then a one-line explanation of what it does. Use only columns I listed. If something is missing, say what you assumed.把方括號 [ ] 內的變數換成你的內容,丟進 ChatGPT / Claude / Gemini。
不用離開網站,直接看這組 prompt 跑出來長怎樣(AI 即時生成,扣 1 點)。
不會寫 SQL 也能查資料。貼上表結構 + 白話需求,給你語句。Analyst / PM / 站長都用得到。
一段只用你給的欄位、可執行的 SQL + 一行說明。
以上為此 Prompt 丟進 ChatGPT / Claude / Gemini 後可得到的描述性成果,實際畫面會因填入的變數而有差異。
[request]白話描述要查什麼
[dialect]資料庫(SQLite / PostgreSQL / MySQL)
[schema]相關的資料表與欄位
填下面的欄位,上方 prompt 會即時替換 [方括號] 內容。填好後按「複製組好的 prompt」直接丟進工具。
Write a SQL query for: {{request}}.
Database: {{dialect}} (e.g. SQLite / PostgreSQL / MySQL).
My relevant tables and columns:
{{schema}}
Give the query, then a one-line explanation of what it does. Use only columns I listed. If something is missing, say what you assumed.這組 prompt 專為 ChatGPT / Claude / Gemini 設計。把 prompt 內 3 個方括號 [變數] 換成你自己的內容,貼進 ChatGPT / Claude / Gemini 執行即可。難度中等,照變數說明填好後即可上手。
完整 prompt 免費開放閱讀,不用註冊;登入後可一鍵複製、收藏與留言。
prompt 文字本身你可自由使用與修改。但 AI 生成物(圖/音樂/影片/文字)的商用授權,取決於你在 ChatGPT / Claude / Gemini 使用的方案與其官方服務條款,請以該工具的授權規範為準。
Studio engineer 視角拆解 Suno 致命弱點(油炸 vocals、高頻 artifact)+ 4 步驟 DAW workflow + Suno Studio 修音 prompt
提案產生器 / 會議處理器 / 內容再利用 / 週五回顧 / 收工 reset — 試了 40 個只有這 5 個沒被丟掉、各省 30+ 分鐘 / 次。
適合:部落格、Medium、Notion 公開頁、Substack — 任何支援 iframe / HTML 嵌入的地方。對方點「看完整」會回到本站、是 prompt 庫的免費 backlink。
<iframe src="https://prompt.luvai.net/embed/sql-from-plain-english" width="100%" height="380" frameborder="0" style="border:1px solid #e0dcd0;border-radius:4px;" loading="lazy" title="PromptCraft Embed"></iframe>
六個月在 Claude / GPT-4 / Gemini 上用人工 rater A/B 測 200+ prompt 後寫的。包含 persona+constraint stacking / anti-example / role reversal QA / cognitive scaffold / emotional priming / uncertainty CoT / steelman first。
一年的 role-play system prompt + 14-step framework 後總結:真正改變品質的是 5 個單行 prompt。沒有 role、沒有 markdown、沒有「you are an expert」。