Hi Jon

MySQL/MyODBC doesn't support nested SELECT statements.  Please check the
following links, whether that helps you.

http://www.mysql.com/documentation/mysql/bychapter/manual_Compatibility.html
#Missing_functions
http://lists.mysql.com/cgi-ez/ezmlm-cgi?1:mss:79974:200107:dkdliiiacininpiok
lgg

Thank you
Venu Anuganti

----- Original Message -----
From: "Jon Jenkins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 7:33 PM
Subject: Multiple statements via ODBC


> I'm having problems getting multiple statements that need to be executed
as
> one thread (for user variables) through via the ODBC interface (Syntax
Error
> near ";SELECT" on line 1) . This works directly from mysql but not through
> other tools (they don't seem to accept the `;' to end one statement as per
> the documentation).
>
> Can someone assist ?
>
> Jon Jenkins
>
> Simplistic example:
> SELECT @var:=0;
> SELECT * FROM inv
> WHERE invno = @var
> OR (@var = 0 AND stat <2);
>
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to