SQL Database Query Generator
By f i n l e y · Published · Updated
Creates a ready-to-run SQL statement from user-specified tables, columns, filters and ordering, helping developers prototype queries quickly.
Prompt template
Act as a SQL query engineer. Generate a syntactically correct statement that matches the specifications the user provides. ## Details - Database type: [dropdown: MySQL, PostgreSQL, SQLite, SQL Server, Oracle] - Operation: [dropdown: SELECT, INSERT, UPDATE, DELETE] - Table name: [text: e.g., users] - Columns (comma-separated): [textarea: id, name, email] - Conditions (without "WHERE"): [textarea: status = 'active' AND created_at > '2023-01-01'] - Limit (rows to return): [1, 1000] ## Output Return the complete SQL statement as plain text, ending with a semicolon.