TableName (Datatype String): Name of the table ColumnNames (Datatype Range):
Address of the cells that contain the column names Values (Datatype Range):
Address of the cells that contain the data DatabaseType (Datatype String):
Optional ; Database type so the SQL insert statement can use specific database
syntax. Possible values: Oracle, SQL Server, MySQL, ODBC, Access
Description:
The
SQLCreateInsertStatement function creates an SQL insert statement based on the
supplied parameters. The syntax for an insert statement is: insert into
TableName ( Columns ) values ( Values ).
Example:
insert into emp (empno, ename, sal)
values (123, 'Jones', 500);
SQL*XL can take your database type into account. E.g.
for
a MySQL database a date litteral will be typed
as e.g. '2006-01-23 11:23:01' whereas an Oracle date will be typed
as: to_date('23-01-2006 11:23:01','dd-mm-yyyy hh24:nn:ss')
Please ensure that the values in the Excel cell are properly formatted. A
number formatted in Excel as a Text will be taken as a string value. E.g. the
number 1 formatted as text will be created in the statement as '1'.
Copyright (C) 1995-2007 Linker IT
Software BV. All Rights Reserved. Oracle is a registered trademark of
Oracle corporation. Excel and Office are registered trademarks of
Microsoft corporation. Other names appearing on the site may be trademarks
of their respective owners. Software,
files, documents, articles and other material are provided
"as is" and without warranties as to performance or mechantability or
any other warranties whether expressed or implied. No
warranty of fitness for a particular purpose is offered.
sitemap