Description Usage Arguments Details Value Examples
translate
translates SQL from one dialect to another.
1 |
sql |
The SQL to be translated |
targetDialect |
The target dialect. Currently "oracle", "postgresql", "pdw", "impala", "netezza", "bigquery", and "redshift" are supported |
oracleTempSchema |
A schema that can be used to create temp tables in when using Oracle or Impala. |
This function takes SQL in one dialect and translates it into another. It uses simple pattern
replacement, so its functionality is limited. Note that trailing semicolons are not removed
for Oracle, which is required before sending a statement through JDBC. This will be done by
splitSql
.
A character string containing the translated SQL.
1 | translate("USE my_schema;", targetDialect = "oracle")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.