powered by
This function takes SQL and translates it to a different dialect.
translateSqlFile(sourceFile, targetFile, targetDialect, oracleTempSchema = NULL)
The source SQL file
The target SQL file
The target dialect. Currently 'oracle', 'postgresql', and 'redshift' are supported
A schema that can be used to create temp tables in when using Oracle.
# NOT RUN { translateSqlFile("myRenderedStatement.sql", "myTranslatedStatement.sql", targetDialect = "postgresql") # }
Run the code above in your browser using DataLab