Load data using generic JDBC
This section explains how to connect to a database and import data using the JDBC driver.
Prerequisite
- JDBC driver downloaded and installed
- Exasol database running
Add JDBC Driver
Follow the procedure described in Add JDBC Driver to upload the settings.cfg
configuration and JDBC driver files to Exasol.
Run Statement
Run the following statement to create a connection.
CREATE OR REPLACE CONNECTION JDBC_CON1
TO '<JDBC connection string>'
USER 'sys'
IDENTIFIED BY 'exasol123';
Run the following statement to test the connection.
Load data
You can use the IMPORT statement to load data using the connection you created above. IMPORT supports loading data from a table or a SQL statement.