---
title: "Discussion on \"How to write a good prompt to generate SQL query on ChatGPT?\" | Hashnode"
description: "Discussion on \"How to write a good prompt to generate SQL query on ChatGPT?\". Be clear and specific\nMake sure your prompt clearly conveys what you want the SQL code to do. Use specific examples and provide all the necessary details, such as table names and column names. This will help chatGPT understand what you're looking for..."
url: "https://hashnode.com/posts/prompt-to-write-sql-query/6643bb50817fb36445079d79"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to write a good prompt to generate SQL query on ChatGPT?](https://blog.turboline.ai/prompt-to-write-sql-query?utm_source=hashnode&utm_medium=feed)

Be clear and specific Make sure your prompt clearly conveys what you want the SQL code to do. Use specific examples and provide all the necessary details, such as table names and column names. This will help chatGPT understand what you're looking for...

Apr 17, 2024 · 2 min read · blog.turboline.ai  
Read the article

-   [#gpt-prompt](https://hashnode.com/tag/gpt-prompt)
-   [#sql](https://hashnode.com/tag/sql)
-   [#query](https://hashnode.com/tag/query)

## Written by

[Turboline LTD](https://hashnode.com/@turboline)

@turboline · London, UK

  
[View profile](https://hashnode.com/@turboline)

Your Data Lifecycle Managed By Experts

Turboline specializes in AI-driven data engineering from integration to analytics. We transform complex data into actionable insights, empowering businesses with advanced data solutions.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
