The TABLETOSQL() function converts values from a table into a ready-to-use SQL command
The resulting outcome allows for quick and convenient import of tabular data directly into a database.
=TABLETOSQL(Range)
The TABLETOSQL() function is easy to use. You just need to select a table with headers and Excel (Calc) will automatically return the text in the format of the SQL command "INSERT INTO":
=TABLETOSQL(Range)
We will get the following result:
The following values are used in this example:
You can use the TABLETOSQL() function by installing the YLC Utilities extension.
After this, this function will be available in all files opened in Excel (LibreOffice Calc).