ToolNest

SQL Create Table Generator

Build CREATE TABLE visuallyRuns locally · nothing uploaded

Database
NameTypeLengthPK / NOT NULL / AutoDefaultComment
CREATE TABLE statement
Also works as:create table generatorsql schema generatormysql table generator

How to use

  1. 1Enter the table name and pick a database.
  2. 2Add columns and their options.
  3. 3Copy the statement.

FAQ

Is auto-increment the same everywhere?

No: MySQL uses AUTO_INCREMENT, PostgreSQL SERIAL, SQL Server IDENTITY. The tool converts automatically.

Are comments included?

MySQL gets COMMENT clauses and PostgreSQL COMMENT ON statements; SQLite has no comments.