31.07.2015 Views

Database Migration from MySQL to RDM Server - Embedded Tools ...

Database Migration from MySQL to RDM Server - Embedded Tools ...

Database Migration from MySQL to RDM Server - Embedded Tools ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Migration</strong> GuideOverviewThis document gives an overview of the key differences in the SQL implementations between <strong>MySQL</strong>and <strong>RDM</strong> <strong>Server</strong>. It is intended <strong>to</strong> be a guide for developers <strong>to</strong> obtain a quick overview of the items <strong>to</strong>take in<strong>to</strong> consideration when moving an application <strong>from</strong> <strong>MySQL</strong> <strong>to</strong> <strong>RDM</strong> <strong>Server</strong>. The first two sectionsof this document outline the differences in the data types and SQL statements that exist between thetwo database solutions. However, it does not outline any of the differences in the native APIs of eachproduct. As long as developers use the standard SQL-API, ODBC and/or JDBC interfaces the matchbetween the two products should be nearly identical. If developers are using the <strong>MySQL</strong> native C-API atranslation is required <strong>to</strong> <strong>RDM</strong> <strong>Server</strong>s-supported SAG CLI-API. Information on how <strong>to</strong> do thistranslation can be found at: http://en.wikipedia.org/wiki/Call_Level_Interface.Data TypesThe following table shows the data types supported by <strong>MySQL</strong> in its data definition language and thecorresponding data types supported by <strong>RDM</strong> <strong>Server</strong> when applicable.Data Type <strong>MySQL</strong> <strong>RDM</strong> <strong>Server</strong>8-bit integerBIT16-bit integer SMALLINT SMALLINT24-bit integerMEDIUMINT32-bit integer INT/INTEGER INTEGER64-bit integer BIGINT BIGINT32-bit floating point64-bit floating pointFLOATDOUBLE / REALVariable floating point DECIMAL / NUMERIC DECIMAL / NUMERICDate DATE DATETime TIME TIMEDate and Time DATETIME / TIMESTAMP TIMESTAMPYearYEARCharacter String CHAR / VARCHAR CHAR / VARCHARBinary BINARY / VARBINARY BINARY / VARBINARYhttp://www.raima.comPage | 4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!