Redshift Database Conversion Tool

The Redshift database conversion tool contained within RazorSQL allows users to convert Amazon Redshift tables to and create Amazon Redshift tables from the following database types:

  • DB2
  • H2
  • HSQLDB
  • MS Access
  • MS SQL Server / SQL Azure
  • MySQL / MariaDB
  • Oracle
  • SQLite

RazorSQL contains conversion tools to convert one or many tables at a time. When converting tables, the tool looks at the type of database the table is being converted to, and generates the database specific DDL to generate the table. It looks at the source database column types and does any adjustments necessary to convert those column types to the destination database's format. The tool then generates and executes the insert statements necessary to populate the table data on the destination database.

The following is an example of the DDL for a MySQL table:

CREATE TABLE sample.employee ( ssn varchar(25) NOT NULL, fname varchar(25), minit char(1), lname varchar(50), address varchar(50), sex char(1) NOT NULL, salary int(10), superssn varchar(50), dno int(10), PRIMARY KEY (ssn) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

When converting the above MySQL table from MySQL to Redshift, the conversion tool generates the following Redshift DDL corresponding to the above MySQL DDL:

CREATE TABLE employee ( ssn varchar(25) NOT NULL, fname varchar(25), minit char(1), lname varchar(50), address varchar(50), sex char(1) NOT NULL, salary int, superssn varchar(50), dno int, PRIMARY KEY (ssn) );

Redshift Database Conversion Tool