Re: UPDATE statement
am 12.08.2003 10:41:00 von Sergei Golubchik
Hi!
On Aug 12, Tino Mariƫn (ViTi) wrote:
> Dear Sir/Madam,
>
> I?ve got a very annoying problem with the UPDATE statement.
> I?m using ASP.NET, MySQL and for the connection I use the
> Microsoft.Data.ODBC reference.
> A couple of times I typed the UPDATE statement look the following:
>
> UPDATA
SET = AND =
> WHERE ?
>
> Off course, the statement is incorrect, while ?AND? must be replaced by
> ?,? but I don?t get any error , why is that?
Because
AND =
is legal expression, so your statement is understood as
= ( AND = )
So, your statement is syntaxically correct, even if it does not do what
one would expect :)
Regards,
Sergei
--
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Sergei Golubchik
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Senior Software Developer
/_/ /_/\_, /___/\___\_\___/ Osnabrueck, Germany
<___/ www.mysql.com
--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@m.gmane.org