You are here: Re: Newbie SQL question... (I am lost!) « MySQL Databases « IT news, forums, messages
Re: Newbie SQL question... (I am lost!)

Posted by MOOXE on 05/21/05 16:50

That worked perfectly, thank you. I have a lot to learn it seems....

Andrew


"Matthias Hoys" <idmwarpzone_NOSPAM_@yahoo.com> wrote in message
news:428f130b$0$26071$ba620e4c@news.skynet.be...
>
> "MOOXE" <mooxe@hotmail.com> wrote in message
> news:So2dnaqky41IMxPfRVn-sQ@rogers.com...
> Howdy All...
>
> I am very new and am bashing through this SQL quite slowly on my own....
> Recently I needed to run a query, one which I could not figure out how to
> contruct....
>
> Heres what I need to do...
>
> SELECT * FROM `test` WHERE `user_actkey` = (anything but a blank entry, I
> dont know what the syntax would be)
>
> After the query finds all entries that have anything but a blank entry I
> want to change the `user_active` field value entry to 1 for each one.
>
> This is really as far as I know what do which is barely a start...
> Hopefully theres some help out there! Thanks to all...
>
> Andrew
>
>
> Try this :
>
> UPDATE test SET user_actkey = 1 WHERE user_actkey <> ''
>
>
>

 

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

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