![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster 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 us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
. . .
Industry Role:
Join Date: Apr 2007
Location: NY
Posts: 13,724
|
mySQL help please
did this query:
UPDATE `BLOG_MEMBERS` SET `M_STAT` = '1' WHERE `BLOG_MEMBERS`.`MEMBER_ID` =612 LIMIT 1 ; I am curious what the "limit 1" does? I am curious how I would modify the syntax of the same query to automatically do all member_id from say 1 to 612? thanks |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
MOBILE PORN: IMOBILEPORN
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
|
limit 1 makes sure that it only updates 1 record
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
. . .
Industry Role:
Join Date: Apr 2007
Location: NY
Posts: 13,724
|
thanks
do I need to set up some kind of loop query to change all the records in one field? (Im a newbie to the sql query thing) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Registered User
Join Date: May 2001
Location: London, England
Posts: 76
|
Nope - just make your where clause something like
where member_id>=1 and member_id<=612 --Dave |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
. . .
Industry Role:
Join Date: Apr 2007
Location: NY
Posts: 13,724
|
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Jan 2007
Location: Vienna, Austria
Posts: 374
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |