Skip to main content
DevTools24

Conversor CSV para SQL

Converta dados CSV para instruções SQL. Gera instruções CREATE TABLE e INSERT com detecção automática de tipo.

Type Detection

  • Column types are automatically inferred from data values
  • Dates (YYYY-MM-DD) and timestamps are detected
  • Boolean values: true/false, 1/0, yes/no
  • Empty values and "NULL" are converted to NULL

CSV to SQL Conversion - Detalhes Técnicos

Converting CSV to SQL is useful for importing spreadsheet data into databases. This tool automatically detects column types (integer, decimal, boolean, date, string) and generates properly escaped SQL statements.

Alternativa via Linha de Comando

# Import CSV directly in PostgreSQL\n\\copy my_table FROM 'data.csv' WITH CSV HEADER;\n\n# MySQL\nLOAD DATA INFILE 'data.csv' INTO TABLE my_table\nFIELDS TERMINATED BY ',';