Fix SQL queries with recursive prompts

error_prompt = f\”\”\”{query.sql}

The query above produced the following error:

{query.error}

Rewrite the query with the error fixed:\”\”\”

no_result_prompt = f\”\”\”{query.sql}

The query above produced no result. Try rewriting the query so it will return results:\”\”\”

Using ChatGPT?

Save all chats, add your notes, categorize and search your chat history.