Database Query Generator
4 fill-in slots · from The AI Prompt Handbook for AI Workflows & Automation
Your details
0/4 filledDatabase Query Generator
Generate a database query from this request: REQUEST: [Natural language description of what data is needed] DATABASE SCHEMA: [Table structures and relationships] DATABASE TYPE: [PostgreSQL / MySQL / MongoDB / etc.] GENERATE: { "query": "The actual query", "query_type": "SELECT | INSERT | UPDATE | DELETE", "parameters": ["value1", "value2"], "explanation": "What this query does", "estimated_impact": "rows affected or returned" } SAFETY CHECKS: - Add LIMIT if SELECT without limit - Warn if UPDATE/DELETE without WHERE - Note if query might be slow (missing indexes) If query cannot be safely generated: { "error": "Cannot generate safe query", "reason": "explanation", "manual_review_needed": true }
Highlighted [slots] are still empty. Downloads are plain .txt — paste into any AI assistant.