Unfortunately Informix does not have a DML command for insert
on-mode batch/Bulk as in mysql .
Batch load options are from TXT file using delimiters (which by default, in Informix is pipe "|" but can use others such as ";" used in CSV standard).
All these options, normally the TXT file has to be accessible by the server where the database runs, because it is from it that the file will be accessed (even in the case of External table).
- EXTERNAL TABLE
Where you can create a table that will read the TXT directly and so make a insert into ... select * from ...
- LOAD
But it is only supported in the utility dbaccess
which is a CUI version and normally run only on the server. Despite having some version of the client, I do not remember which, that it also comes installed.
- DBLOAD
Data loading utility with transaction control.
Also available only on the server.
- HPL
Utility for high performance data loading. Useful only if you need to load millions of lines.
Also available only on the server.
I know that in JDBC and ODBC there are functions for "Bulk Insert", but I understand that it should be specifically programmed in your code and aims to streamline the performance of the load process and not make your life easier.
You can refer to these commands in the online product manual at Informix 12.10 Knowledge center
If this load will only be done once, you can use SQL client programs to assist you, such as Squirrelsql . He owns a plugin called "dataimport" which allows you to load data from Excel files or in CSV format .
This plugin adds the Ability to import data from Excel or CSV files
into a database using Squirrel.
Although I find your solution somewhat astonishing, I would like to understand why technically it meets your need and the sequence of non Inserts ? Performance?
– ceinmart
Performance. Sequence of Insert will make line by line, thus "mirabolante" is made in block.
– Thiago Rodolfo
To consider sending everything in a single block really is a solution since Informix does not have an accessible solution via SQL. But it has features for when working with Insert that are buffers for when PUT is used, but then you need to study the programming language you are using to ensure this use, see these two links : for jdbc , general performance tests
– ceinmart
missing this link from manual
– ceinmart