Populate the database
For your initial tests, the easiest way to populate the
database is to type INSERT statements in .
For example, to insert a row into the manufact table of the
demonstration database, enter the following command in :
INSERT INTO manufact VALUES ('MKL', 'Martin', 15);If you are preparing an application program, such as an application in C, you can use the application to enter rows into a database table.
The
following table lists HCL®
Informix® tools
that you can use for entering information into your database. The
acronyms in the Reference column are explained after the table.
| Tool | Purpose | Reference |
|---|---|---|
| dbaccessdemo | Prepare and populate sample databases. | DB-A, SQLR |
| Edit a database by entering explicit commands. | DB-A, SQLS | |
| onunload & onload | Copy an entire database or selected database tables to or from files on tape or disk. | MG, AR |
| dbload | Load data from one or more text files into one or more existing tables. | MG |
| LOAD & UNLOAD | Load data from (or into) a text file. | SQLS |
| dbexport , dbimport | Copy an entire database using text files. | MG |
| Update selected databases each time a specified table is updated. | ER | |
| C application | Use SQL commands embedded in a C program to update databases. | ESQLC, DAPI |
| Java™ application | Use SQL commands embedded in a Java™ program to update databases. | Java™ |
- Mnemonic
- Explanation of References Column
- SQLR
- HCL® Informix® Guide to SQL: Reference
- SQLS
- HCL® Informix® Guide to SQL: Syntax
- MG
- HCL Informix® Migration Guide
- AR
- HCL® Informix® Administrator's Reference
- ESQL/C
- HCL® Informix® Enterprise Replication Guide
- Java™
- HCL® J/Foundation Developer's Guide
- DB-A
- HCL® Informix® DB-Access User's Guide
- ER
- DAPI
- HCL® Informix® DataBlade® API Programmer's Guide