Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > Database
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

Database Database problems or need to ask a question? maybe something to do with sql injections or a database software question. Database topics cover MySQL, PostgreSQL, Oracle, SQL Server or anything else related to databases.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 05-31-2007, 8:39 PM   #1
Matthias Hoys
 
Matthias Hoys's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Newbie SQL question... (I am lost!)


"MOOXE" <mooxe@hotmail.com> wrote in message
newso2dnaqky41IMxPfRVn-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 <> ''



 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Advertisements
Old 05-31-2007, 8:39 PM   #2
MOOXE
 
MOOXE's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Newbie SQL question... (I am lost!)

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
> newso2dnaqky41IMxPfRVn-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 <> ''
>
>
>



 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 05-31-2007, 8:39 PM   #3
Matthias Hoys
 
Matthias Hoys's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Newbie SQL question... (I am lost!)


"MOOXE" <mooxe@hotmail.com> wrote in message
news:Q7OdnVQfU4UFphLfRVn-jQ@rogers.com...
> That worked perfectly, thank you. I have a lot to learn it seems....
>
> Andrew
>


Well everyone has to start somewhere ;-)
Good luck !


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags: , , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie Mod Chip Question Mother Focus Computer Consoles 14 06-10-2007 9:05 PM
Newbie Mod Chip Question alia Computer Consoles 0 05-29-2007 10:17 AM
Total newbie: an erasing question Matt Shepherd Graphics in general 3 05-28-2007 7:58 PM
A newbie question about NVU (templates) grubas8@gazeta.pl Website Reviews And Website Questions 1 05-28-2007 12:42 AM
PR lost its way? FURiON Search Engine Optimization 2 08-29-2006 1:32 AM


Featured Websites




All times are GMT +1. The time now is 3:27 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98