TOP

TableToSql Function

TABLETOSQL() Description

The TABLETOSQL() function converts values from a table into an SQL INSERT INTO command.

This function also takes the sheet name as the SQL table name.


Key Characteristics of TABLETOSQL Function

Syntax:

=TABLETOSQL(Range)

Parameters:

Usage Example

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 "INSERT INTO" SQL command format:

=TABLETOSQL(Range)

We will get the following result:

Example of TABLETOSQL() function usage
Example of TABLETOSQL() function usage

The following values are used in this example:

Download Extension

You can use the TABLETOSQL() function by installing the YLC Utilities extension.

After this, the function will be available in all files opened in Excel (LibreOffice Calc).


This function is also available in the following extensions: YLC FunctionsYLC Utilities

The YLC Utilities menu in LO Calc

The YLC Utilities menu in LO Calc

The YLC Utilities menu in Excel

The YLC Utilities menu in Excel