You are here: Re: MySQL 3.x and SELECT / WHERE « PHP Language « IT news, forums, messages
Re: MySQL 3.x and SELECT / WHERE

Posted by ZeldorBlat on 04/04/07 15:52

On Apr 4, 10:39 am, "lallous" <lall...@lgwm.org> wrote:
> Hello
>
> I have a small MySQL query like this:
>
> [code]
> SELECT
> CONCAT(users.description, ' ', users.address) AS x
> FROM
> users
> WHERE
> x LIKE '%something_to_match_here%'
>
> [/code]
>
> MySQL 3.x is complaining about complaining about the use of "x" saying
> that it is not a valid column name. Is there is a way to make this
> work or something similar?
>
> --
> Elias

SELECT
CONCAT(users.description, ' ', users.address) AS x
FROM
users
WHERE
CONCAT(users.description, ' ', users.address) LIKE
'%something_to_match_here%'

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация