The generator builds the SQL statement in the syntax of the database you choose: quoted names, TOP or LIMIT, dates, booleans and UPSERT with ON DUPLICATE KEY, ON CONFLICT or MERGE. Enter fields in a grid, paste a list of records as JSON or CSV, or paste a class from your project and the tool reads its properties, types and annotations such as [Key], [Table] and @Column.
How to use
- Choose the database, the operation and the table.
- Fill in fields and values, paste records or import a class.
- Check the key field and copy the generated SQL.
Frequently asked questions
Which class languages are supported?
C# (including records and Entity Framework attributes), Java/JPA, Kotlin, TypeScript, Python (dataclass, Pydantic, SQLAlchemy), PHP and Go (with db and gorm tags).
What is UPSERT?
A statement that inserts the row if it does not exist and updates it if it does. Each database has its own syntax and the tool uses the right one.
Why use parameters instead of values?
In application code, parameters (@name, ?, $1) prevent SQL injection. Literal values are for scripts and tests.
Is my data sent to a server?
No. The SQL is generated in your browser.
Related tools
- JSON FormatterFormat, validate, or minify JSON structures.
- Base64Encode or decode text using Base64.
- JWT DecoderView a JWT header and payload. The signature is not validated.
- Timestamp ConverterConvert Unix timestamps to date and time, and vice versa.
- Regex testerTest JavaScript regular expressions.
- HTTP Status CodesLook up common HTTP status codes.
- Text to HTMLConvert text to HTML, escape entities or extract text from HTML.
- Character infoSee the Unicode code point, UTF-8 and escapes of each character.
- SQL FormatterFormat, indent and minify SQL queries, with uppercase or lowercase keywords.