Skip to tool

Categories

File formats / 11 formats, every pair

reStructuredText to SQL converter

Turn reStructuredText into SQL — CREATE TABLE and INSERT statements with quoted identifiers — in this browser tab. Paste your reStructuredText, copy the SQL: the quoting and escaping SQL needs are applied for you.

On-device prototype

reStructuredText to SQL, worked out

3 rows and 4 columns: 7 lines of reStructuredText become 11 lines of SQL.

reStructuredText in

=========  ======  =====  ==========
product    region  units  unit price
=========  ======  =====  ==========
Desk lamp  EU      128    24.50     
Chair      R&D     64     98.00     
Monitor    APAC    32     249.99    
=========  ======  =====  ==========

SQL out

CREATE TABLE "imported_table" (
  "product" VARCHAR(255),
  "region" VARCHAR(255),
  "units" INTEGER,
  "unit price" DECIMAL(10, 2)
);

INSERT INTO "imported_table" ("product", "region", "units", "unit price") VALUES
  ('Desk lamp', 'EU', 128, 24.50),
  ('Chair', 'R&D', 64, 98.00),
  ('Monitor', 'APAC', 32, 249.99);

SQL result

CREATE TABLE "imported_table" (
  "product" VARCHAR(255),
  "region" VARCHAR(255),
  "units" INTEGER,
  "unit price" DECIMAL(10, 2)
);

INSERT INTO "imported_table" ("product", "region", "units", "unit price") VALUES
  ('Desk lamp', 'EU', 128, 24.50),
  ('Chair', 'R&D', 64, 98.00),
  ('Monitor', 'APAC', 32, 249.99);

Conversions next to this one

Chosen from where these tools sit in the catalogue — the same workbench, the same category, the same words. Nothing here measures what you or anyone else opened.