Loading a small CSV of customers into four different databases
Say you have a CSV export with a header line id,name,email,joined,active and three rows. One of the names is Ann O'Neil, and one customer has no email. You want these rows in a table called people. The SQL looks simple, but each of those details can break it, and each database breaks it in a slightly different way.
Start with the apostrophe. In SQL a string is wrapped in single quotes, so the apostrophe in O'Neil would end the string early and leave a syntax error, or worse, valid SQL that does something else. The standard fix, used by every database here, is to double the quote: 'Ann O''Neil'. The generator does that for every value. For MySQL it also doubles each backslash, because MySQL reads \n inside a string as a newline unless the server runs with NO_BACKSLASH_ESCAPES. A Windows path such as C:\new would otherwise arrive with a line break in it.
Next, the missing email. In the CSV it is an empty cell, and an empty cell could mean an empty string or no value at all. With Empty cells become NULL ticked, the generator writes NULL, which is usually what you want for an optional column. The id column is a plain number, so with Plain numbers stay unquoted ticked it is written as 1, not '1'. The active column holds the words true and false. They stay quoted text, because the tool does not guess types beyond numbers. PostgreSQL will accept 'true' for a boolean column, and other databases may need 1 and 0 in the CSV.
Then pick the database. For PostgreSQL the statement starts INSERT INTO "people" ("id", "name", "email", "joined", "active") VALUES, followed by one line per row. For MySQL the names use backticks, for SQL Server square brackets, and SQLite takes double quotes like PostgreSQL. With 100 rows per INSERT, all three rows go into one statement, which is faster to run than three. For SQL Server, values with characters outside plain ASCII get an N prefix, as in N'Zoë', so they are stored as Unicode.
There are limits to keep in mind. The generator does not create the table or check that the columns exist, and it does not convert dates: 2024-03-15 is sent as a string, which PostgreSQL, MySQL and SQL Server cast to a date column on insert. Very large batches can pass a server limit, such as MySQL’s max_allowed_packet, so lower the statement size if an import is rejected. Excel files are not read directly; open the sheet, copy the cells and paste them here as TSV.