MySQL Forums
Forum List  »  Newbie

How can it be done - plus sign in query
Posted by: Matlak Sandor
Date: June 16, 2005 03:05PM

hi

i have the following problem:
i have to SELECT rows from the table with the following WHERE condition: WHERE columna = 3+2.
'3+2' is a string, cannot be modified, comes from a form. but of course MYSQL evaluates the 3+2 expression and tries to select columna=5 (at least i think so :)) and the query makes no results. how can this be solved?

thx
sanya

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.