Ask a Question related to MySQL, Design and Development.
-
dylan #1
[microsoft][odbc microsoft access driver] syntax error (missing operator) in query expression error
I have a query I want to run using DBQwiksite siftware, which produces
the
[microsoft][odbc microsoft access driver] syntax error (missing
operator) in query expression
error when you go to save it.
The query I want to run is this:
SELECT m1.start_date, m1.end_date, m1.start_time, m1.end_time,
m1.match_id, t1.team_name AS team1_name, t2.team_name AS team2_name,
s1.stadium_name AS stadium, type.type_title as type,
channels.channel_name as channels
FROM matches AS m1
LEFT JOIN teams AS t1 ON m1.team1_id = t1.team_id
LEFT JOIN teams AS t2 ON m1.team2_id = t2.team_id
LEFT JOIN stadiums AS s1 ON m1.stadium_id = s1.stadium_id
LEFT JOIN type AS type ON m1.matches_sport_id = type.type_id
LEFT JOIN channels AS channels ON m1.channel_id = channels.channel_id
Can anyone see any reason why this query will not run?
Any help would be very much appreciated.
Dylan James
dylan Guest
-
Syntax error (missing operator) in query expression
Hi, I have received the following error: ODBC Error Code = 37000 (Syntax error or access violation) Syntax error (missing operator) in query... -
[Microsoft][ODBC Microsoft Access Driver] Could not start session.
Does anyone know what this problem means??? Microsoft OLE DB Provider for ODBC Drivers error '80004005' Could not start session. ... -
[Microsoft][ODBC Microsoft Access Driver]'(unknown)' is not a valid path error
This is probably an old problem that most of you know how to fix (I hope!). The scenario is that I have a web server running an ASP site that needs... -
Syntax error (missing operator) in query expression'idProperty='
The following is the code, can someone please help me with the syntax please in the first line please Conn.Execute "UPDATE tblRentalProperty SET... -
syntax error (missing operator) query expression
valuA = (request.form("toadd")) If valuA = "" then SQL = "UPDATE CourseReg SET attended='Active' WHERE ID IN("&request.form("toadd")&")" Set RS =... -
Jerry Stuckle #2
Re: [microsoft][odbc microsoft access driver] syntax error (missingoperator) in query expression error
dylan wrote:
Might I suggest an access newsgroup? This one is for MySQL.> I have a query I want to run using DBQwiksite siftware, which produces
> the
>
> [microsoft][odbc microsoft access driver] syntax error (missing
> operator) in query expression
>
> error when you go to save it.
>
>
> The query I want to run is this:
>
>
> SELECT m1.start_date, m1.end_date, m1.start_time, m1.end_time,
> m1.match_id, t1.team_name AS team1_name, t2.team_name AS team2_name,
> s1.stadium_name AS stadium, type.type_title as type,
> channels.channel_name as channels
> FROM matches AS m1
> LEFT JOIN teams AS t1 ON m1.team1_id = t1.team_id
> LEFT JOIN teams AS t2 ON m1.team2_id = t2.team_id
> LEFT JOIN stadiums AS s1 ON m1.stadium_id = s1.stadium_id
> LEFT JOIN type AS type ON m1.matches_sport_id = type.type_id
> LEFT JOIN channels AS channels ON m1.channel_id = channels.channel_id
>
>
>
>
>
> Can anyone see any reason why this query will not run?
>
> Any help would be very much appreciated.
>
> Dylan James
>
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
[email]jstucklex@attglobal.net[/email]
==================
Jerry Stuckle Guest
-
dylan #3
Re: [microsoft][odbc microsoft access driver] syntax error (missing operator) in query expression error
Well I'm using mySQL! That's my problem.
Jerry Stuckle wrote:
> dylan wrote:>> > I have a query I want to run using DBQwiksite siftware, which produces
> > the
> >
> > [microsoft][odbc microsoft access driver] syntax error (missing
> > operator) in query expression
> >
> > error when you go to save it.
> >
> >
> > The query I want to run is this:
> >
> >
> > SELECT m1.start_date, m1.end_date, m1.start_time, m1.end_time,
> > m1.match_id, t1.team_name AS team1_name, t2.team_name AS team2_name,
> > s1.stadium_name AS stadium, type.type_title as type,
> > channels.channel_name as channels
> > FROM matches AS m1
> > LEFT JOIN teams AS t1 ON m1.team1_id = t1.team_id
> > LEFT JOIN teams AS t2 ON m1.team2_id = t2.team_id
> > LEFT JOIN stadiums AS s1 ON m1.stadium_id = s1.stadium_id
> > LEFT JOIN type AS type ON m1.matches_sport_id = type.type_id
> > LEFT JOIN channels AS channels ON m1.channel_id = channels.channel_id
> >
> >
> >
> >
> >
> > Can anyone see any reason why this query will not run?
> >
> > Any help would be very much appreciated.
> >
> > Dylan James
> >
> Might I suggest an access newsgroup? This one is for MySQL.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> [email]jstucklex@attglobal.net[/email]
> ==================dylan Guest
-
Jerry Stuckle #4
Re: [microsoft][odbc microsoft access driver] syntax error (missingoperator) in query expression error
dylan wrote:
Then why does it say 'odbc microsoft access driver'?> Well I'm using mySQL! That's my problem.
>
>
>
>
> Jerry Stuckle wrote:
>
>>>>dylan wrote:
>>>>>>>I have a query I want to run using DBQwiksite siftware, which produces
>>>the
>>>
>>>[microsoft][odbc microsoft access driver] syntax error (missing
>>>operator) in query expression
>>>
>>>error when you go to save it.
>>>
>>>
>>>The query I want to run is this:
>>>
>>>
>>>SELECT m1.start_date, m1.end_date, m1.start_time, m1.end_time,
>>>m1.match_id, t1.team_name AS team1_name, t2.team_name AS team2_name,
>>>s1.stadium_name AS stadium, type.type_title as type,
>>>channels.channel_name as channels
>>>FROM matches AS m1
>>>LEFT JOIN teams AS t1 ON m1.team1_id = t1.team_id
>>>LEFT JOIN teams AS t2 ON m1.team2_id = t2.team_id
>>>LEFT JOIN stadiums AS s1 ON m1.stadium_id = s1.stadium_id
>>>LEFT JOIN type AS type ON m1.matches_sport_id = type.type_id
>>>LEFT JOIN channels AS channels ON m1.channel_id = channels.channel_id
>>>
>>>
>>>
>>>
>>>
>>>Can anyone see any reason why this query will not run?
>>>
>>>Any help would be very much appreciated.
>>>
>>>Dylan James
>>>
>>Might I suggest an access newsgroup? This one is for MySQL.
>>
>>--
>>==================
>>Remove the "x" from my email address
>>Jerry Stuckle
>>JDS Computer Training Corp.
>>jstucklex@attglobal.net
>>==================
>
I think your problem lies somewhere else.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
[email]jstucklex@attglobal.net[/email]
==================
Jerry Stuckle Guest
-
Bill Karwin #5
Re: [microsoft][odbc microsoft access driver] syntax error (missingoperator) in query expression error
dylan wrote:
My understanding is that the error says "[microsoft][odbc microsoft> Well I'm using mySQL! That's my problem.
access driver]" indicates that it's trying to run the query against
Microsoft Access (i.e. the Jet engine). It is not running it against
MySQL. If you were using the MySQL ODBC driver for the connection, the
error would start like this: "[MySQL][ODBC 3.51 Driver]".
Jet doesn't understand the JOIN syntax with multiple joins. You have to
use parentheses. In other words, this works in MySQL:
A JOIN B ON <condition_AB>
JOIN C ON <condition_BC>
But in MS Access, you have do this:
A JOIN (
B JOIN C ON <condition_BC>
) ON <condition_AB>
So either write your SQL joins in accordance with MS Access's syntax, or
else change your ODBC DSN to utilize the MySQL ODBC driver and connect
to a MySQL database.
Regards,
Bill K.
Bill Karwin Guest
-
dylan #6
Re: [microsoft][odbc microsoft access driver] syntax error (missing operator) in query expression error
Hi,
Thanks guys, I will try what you suggested Bill. I'm still waiting for
the dbqwiksite support team to provide me with a suitable anwswer, it
seems like another bug in their software, as it asks you which database
you want to use and I selected mySQL....
Thanks,
Dylan
Bill Karwin wrote:> dylan wrote:>> > Well I'm using mySQL! That's my problem.
> My understanding is that the error says "[microsoft][odbc microsoft
> access driver]" indicates that it's trying to run the query against
> Microsoft Access (i.e. the Jet engine). It is not running it against
> MySQL. If you were using the MySQL ODBC driver for the connection, the
> error would start like this: "[MySQL][ODBC 3.51 Driver]".
>
> Jet doesn't understand the JOIN syntax with multiple joins. You have to
> use parentheses. In other words, this works in MySQL:
>
> A JOIN B ON <condition_AB>
> JOIN C ON <condition_BC>
>
> But in MS Access, you have do this:
>
> A JOIN (
> B JOIN C ON <condition_BC>
> ) ON <condition_AB>
>
> So either write your SQL joins in accordance with MS Access's syntax, or
> else change your ODBC DSN to utilize the MySQL ODBC driver and connect
> to a MySQL database.
>
> Regards,
> Bill K.dylan Guest
-
Jerry Stuckle #7
Re: [microsoft][odbc microsoft access driver] syntax error (missingoperator) in query expression error
dylan wrote:
Dylan,> Hi,
>
>
> Thanks guys, I will try what you suggested Bill. I'm still waiting for
> the dbqwiksite support team to provide me with a suitable anwswer, it
> seems like another bug in their software, as it asks you which database
> you want to use and I selected mySQL....
>
> Thanks,
>
> Dylan
>
> Bill Karwin wrote:
>>>>dylan wrote:
>>>>>>>Well I'm using mySQL! That's my problem.
>>My understanding is that the error says "[microsoft][odbc microsoft
>>access driver]" indicates that it's trying to run the query against
>>Microsoft Access (i.e. the Jet engine). It is not running it against
>>MySQL. If you were using the MySQL ODBC driver for the connection, the
>>error would start like this: "[MySQL][ODBC 3.51 Driver]".
>>
>>Jet doesn't understand the JOIN syntax with multiple joins. You have to
>>use parentheses. In other words, this works in MySQL:
>>
>>A JOIN B ON <condition_AB>
>> JOIN C ON <condition_BC>
>>
>>But in MS Access, you have do this:
>>
>>A JOIN (
>> B JOIN C ON <condition_BC>
>> ) ON <condition_AB>
>>
>>So either write your SQL joins in accordance with MS Access's syntax, or
>>else change your ODBC DSN to utilize the MySQL ODBC driver and connect
>>to a MySQL database.
>>
>>Regards,
>>Bill K.
>
No, I would think this would more probably be ODBC definition. Are you
sure the database is defined using the MySQL driver? Are you sure
you're using the correct database (instead of something similarly named)?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
[email]jstucklex@attglobal.net[/email]
==================
Jerry Stuckle Guest



Reply With Quote

