Two rows, PostgreSQL
id,name 1,"O'Brien" 2,Ada
INSERT INTO "my_table" ("id", "name") VALUES
(1, 'O''Brien'),
(2, 'Ada');Turn an Excel sheet or CSV into batched SQL INSERT statements for Postgres, MySQL or SQL Server.
Rows are grouped into multi-row INSERT statements of this size.
The result will appear here.
Was this tool useful?
Loading a spreadsheet of real-world data into a database usually means turning every row into an INSERT statement — tedious and error-prone by hand, especially once you account for NULL values, apostrophes in text, and each database's own quoting rules for identifiers.
id,name 1,"O'Brien" 2,Ada
INSERT INTO "my_table" ("id", "name") VALUES
(1, 'O''Brien'),
(2, 'Ada');