JDBC Data Source¶
It is also possible to map tables from other databases using JDBC.
Syntax:
Note
The JDBC URL, the table name to access, and the user name and password are specified in the OPTIONS clause. The value specified WITH REFERENCE (dummy in this example) is not used, but the syntax requires a REFERENCE clause.
JDBC Data Source:
- Create the external table for the Actian Data Platform data source:
In this example, we map the table t1 in database sparktest on node V2 on host usau-hcl-lnx01 to the external table employee_ex_jdbc and connect as user user1 using password pass123.
- Create the native Actian Data Platform table:
- Load the Actian Data Platform table with the INSERT command:
WARNING!The specified user credentials are visible for all users that can connect to the database.