AI for SQL
Discussions focus on using LLMs like ChatGPT and specialized tools to generate, explain, optimize, and learn SQL queries, including debates on whether deep SQL knowledge is still necessary.
Activity Over Time
Top Contributors
Keywords
Sample Comments
You're getting downvoted by gatekeepers but LLMs are amazing with SQL and this is a great use-case.
I have been using Phind for building SQL queries and it's actually great to learn more about SQL, and the results are mostly correct. Just try to ask it to build some advanced query then you discover you don't truly know SQL.
Wait... people need AI to write SQL ?
In my experience LLMs excel at SQL.
How does your tool differ from, say, when I paste an SQL query into ChatGPT and prompt it with "Explain this SQL query for me, please"
Hi HN!I built out a few helpful SQL tools (some AI, some not) that I wanted to share with the community. The goal is for these tools to help in the process of learning SQL, organizing SQL, optimizing SQL, and picking up an existing SQL project.SQL Tutorial – a fun, interactive tutorial for 30+ SQL statements[0]SQL AI Optimizer – optimize your SQL statement[1]SQL AI Explainer – explain your complex SQL in plain language[2]SQL Formatter – format your SQL nicely[3]Let me know what
why not just use nlp to generate sql from the query /s
There's no point in learning any much deeper SQL anymore, AI assistants have largely solved SQL querying. Just ask for what you want with natural language.
If anyone is interested, I had gpt explain this SQL to me - and it was really helpful, as I couldnt parse that with my level of SQL...https://chat.openai.com/share/931b1778-6393-4e86-94b4-b3b5a5...
They can ask chatgpt to generate the SQL query and use the SQL output that everyone is familiar with rather than use an abstraction that is prone to versioning and behavioral changes and will consume everyone else's time to go learn a new language and become profficient in it.