SQL CREATE TABLE Generator
Infer column types from sample data and emit CREATE TABLE for PostgreSQL, MySQL, SQLite, or SQL Server.
CREATE TABLE
Type inference
Each column is scanned: if every value parses as an integer, it picks INT (or BIGINT when values get large); decimals become NUMERIC; date-like strings become DATE or TIMESTAMP; everything else is VARCHAR(n) sized to the longest sample.
Dialect quirks
PostgreSQL uses SERIAL/BIGSERIAL; MySQL uses AUTO_INCREMENT; SQLite folds everything to flexible type affinity. The generator picks the right primary-key syntax for the dialect you choose.
You might also like
- SQL INSERT GeneratorConvert CSV / TSV / JSON into INSERT INTO statements — multi-row VALUES or one statement per row.
- SQL Result → Table PreviewPaste CSV, TSV, pipe-delimited, or JSON results and preview them as a styled table with inferred column types.
- CSV ↔ JSON ConverterConvert CSV to JSON or JSON to CSV with quoted fields and configurable delimiters.
- cURL ConverterParse a curl command and emit fetch, Node https, Python requests, Ruby Net::HTTP, Go net/http, PowerShell, HTTPie, and wget equivalents.