Problems Selecting Mysql Data Using or 11.2 DG4ODBC - Error In Your SQL Syntax

(Doc ID 553030.1)

Last updated on JANUARY 19, 2017

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.1 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 31-Aug-2012***


Trying to select data from MySQL using DG4ODBC gives the following error -

SQL> select * from test_table@mysql ;
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][MySQL][ODBC 3.51
Driver][mysqld-5.0.24a-community-nt]You have an error in your SQL syntax; check
the manual that corresponds to your MySQL server version for the right syntax
to use near '"TEST_TABLE" WHERE "col1"='Bill '' at line 1 (SQL State: 37000; SQL
Code: 1064)
ORA-02063: preceding 2 lines from MYSQL

This can also happen using an earlier RDBMS such as to access 11.2 DG4ODBC.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms