
Component family |
Databases |
|
Function |
tCreateTable creates, drops and |
|
Purpose |
This specific component helps create or drop any database |
|
Basic settings |
Property type |
Either Built-in or Repository. Since version 5.6, both the Built-In mode and the Repository mode are |
|
|
Built-in: No property data stored |
|
|
Repository: Select the repository |
|
Database Type |
Select the DBMS type from the list. The component properties may |
DB Version |
Select the database version in use. |
|
|
Table Action |
Select the action to be carried out on the database among:
Create table: when you know already
Create table if not exists: when
Drop table if exits and create: |
Use an existing connection |
Select this check box and in the Component List click the NoteWhen a Job contains the parent Job and the child Job, if you need to share an existing
For an example about how to share a database connection across Job levels, see |
|
Host |
Database server IP address. |
|
Port |
Listening port number of the DB server. |
|
Database name |
Name of the database. |
|
Schema |
Name of the schema. (DB2, Greenplum, Informix, Oracle, PostgresPlus, Postgresql, |
|
|
Username and |
DB user authentication data. To enter the password, click the […] button next to the |
|
Table name |
Type in between quotes a name for the newly created table. |
|
Schema and Edit |
A schema is a row description. It defines the number of fields to be processed and passed on Since version 5.6, both the Built-In mode and the Repository mode are |
|
|
Built-In: You create and store the schema locally for this |
|
|
Repository: You have already created the schema and When the schema to be reused has default values that are integers or functions, ensure that For more details, see https://help.talend.com/display/KB/Verifying+default+values+in+a+retrieved+schema. |
Click Edit schema to make changes to the schema. If the
|
||
Advanced settings |
tStatCatcher Statistics |
Select this check box to gather the job processing metadata at a |
Additional JDBC Parameters |
Specify additional connection properties for the DB connection you (AS/400, MSSQL Server) |
|
Create projection |
Select this check box to create a projection. (Vertica) |
|
Global Variables |
QUERY: the SQL query statement being processed. This is a ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Usage |
This component offers the flexibility of the database query and |
|
Log4j |
The activity of this component can be logged using the log4j feature. For more information on this feature, see Talend Studio User For more information on the log4j logging levels, see the Apache documentation at http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html. |
|
Limitation |
This component requires installation of its related jar files. For more information about the |
Database-specific fields:
Access |
Access File |
Name and path of the file to be processed. |
Firebird |
Firebird File |
Name and path of the file to be processed. |
HSQLDb |
Running Mode |
Select from the list the Server Mode that corresponds to your |
Use TLS/SSL Sockets |
Select this check box to enable the secured mode, if |
|
DB Alias |
Name of the database. |
|
Case Sensitive |
Select this check box to make the table/column name case |
|
Interbase |
Interbase File |
Name and path of the file to be processed. |
JavaDb |
Framework Type |
Select from the list a framework for your database. |
Structure type |
Select in the list the structure type. |
|
DB Root Path |
Browse to your database root. |
|
Mysql |
Temporary table |
Select this check box if you want to save the created table |
ODBC |
ODBC Name |
Name of the database. |
Oracle |
Connection Type |
Drop-down list of available drivers: Oracle SID: Select this Oracle Service Name: Select this Oracle OCI: Select this WALLET: Select this connection |
SQLite |
SQLite File |
Name and path of the file to be processed. Related topic: see Talend Studio User |
Teradata |
Create |
Select the table type from the drop-down list. The type may – SET TABLE: tables which do not – MULTI SET TABLE: tables |
The Job described below aims at creating a table in a database, made of a dummy schema taken from a delimited file schema
stored in the Repository. This Job is composed of a single
component.

-
Drop a tCreateTable component from the
Databases family in the Palette to the design workspace. -
In the Basic settings view, and from the
Database Type list, select Mysql for this
scenario. -
From the Table Action list, select Create table.
-
Select the Use Existing Connection check box
only if you are using a dedicated DB connection component tMysqlConnection. In this example, we won’t use this
option. -
In the Property type field, select Repository so that the connection fields that
follow are automatically filled in. If you have not defined your DB
connection metadata in the DB connection
directory under the Metadata node, fill in
the details manually as Built-in. -
In the Table Name field, fill in a name for
the table to be created. -
If you want to retrieve the Schema from the
Metadata (it doesn’t need to be a DB connection Schema metadata), select
Repository then the relevant entry. -
In any case (Built-in or Repository)
click Edit Schema to check the data type
mappingClick Edit Schema
to define the data structure. -
Click the Reset DB Types button in case the
DB type column is empty or shows discrepancies (marked in orange). This allows
you to map any data type to the relevant DB data type. Then, click OK to validate your changes and close the dialog
box. -
Save your Job and press F6 to execute
it.
The table is created empty but with all columns defined in the Schema.
