| Item | Quantity |
|---|---|
| Notebook | 12 |
| Pencil | 4 |
CSV to SQL reads a table and writes two statements: CREATE TABLE, then a single INSERT with one tuple per row. A two-row sheet Item,Quantity / Notebook,12 / Pen,4 with the table name records becomes CREATE TABLE "records" ("Item" TEXT, "Quantity" NUMERIC); INSERT INTO "records" ("Item", "Quantity") VALUES ('Notebook', 12), ('Pen', 4);. Quantity is NUMERIC because every value in that column is a number. Item is TEXT.
Column types are inferred per column. All numbers, or null, means NUMERIC. All booleans means BOOLEAN. Anything else is TEXT. Identifiers are double-quoted, which PostgreSQL and SQLite accept as written. MySQL treats double quotes as identifiers only in ANSI_QUOTES mode. There is no dialect menu on this page, so the quoting is that one style.
The JSON to SQL page does not write CREATE TABLE. It only writes the INSERT, from an array of objects. The IN-clause page does not write a table at all.
Table name records. CSV: Item,Quantity then Notebook,12 then Pen,4.
CREATE TABLE "records" ("Item" TEXT, "Quantity" NUMERIC); INSERT INTO "records" ("Item", "Quantity") VALUES ('Notebook', 12), ('Pen', 4);
CREATE TABLE is the part the other SQL pages skip. Types come from the column, not from the first row alone.
Every Quantity cell is a number, so the column is NUMERIC. Item contains words, so it is TEXT. One non-numeric cell would make the whole column TEXT.
The identifiers use double quotes. PostgreSQL and SQLite accept that. MySQL needs ANSI_QUOTES, or you edit the quotes to backticks. There is no dialect switch on the page.
No. JSON to SQL and the INSERT builder emit only the INSERT. This page is the one that adds CREATE TABLE.
A single quote inside a string is doubled, which is the SQL escape. Commas inside a quoted CSV cell stay inside one value.