![]() |
![]() |
![]() |
||||
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 |
RIP Dodger. BEST.CAT.EVER
Industry Role:
Join Date: Dec 2002
Location: NYC Area
Posts: 18,450
|
Need SQL command help...
I need to change 30,000 variables all from 0 to 1 in a column in a table in sql...
Can anyone give me the command line?
__________________
-uno icq: 111-914 CrazyBabe.com - porn art MojoHost - For all your hosting needs, present and future. Tell them I sent ya! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to set a custom title
Join Date: Jan 2005
Posts: 2,961
|
UPDATE `tablename` SET `columnname`='1';
__________________
![]() ZangoCash - Turn Your Traffic Into Ca$h. $.40 Per Install - No Tier |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
UPDATE tablename SET columnname=1 WHERE columnname=0
incase you have other numbers than 0 and 1 in that column |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to set a custom title
Join Date: Jan 2005
Posts: 2,961
|
He said that all the variables were 0, though
![]()
__________________
![]() ZangoCash - Turn Your Traffic Into Ca$h. $.40 Per Install - No Tier |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Let's do some business!
Industry Role:
Join Date: Sep 2004
Location: Austin, TX
Posts: 31,333
|
DELETE tablename
__________________
Vacares - Web Hosting, Domains, O365, Security & More - Paxum and BTC Accepted Windows VPS now available Great for TSS, Nifty Stats, remote work, virtual assistants, etc. Click here for more details. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
RIP Dodger. BEST.CAT.EVER
Industry Role:
Join Date: Dec 2002
Location: NYC Area
Posts: 18,450
|
hmm i don't want to change the column name, just the values in the column
__________________
-uno icq: 111-914 CrazyBabe.com - porn art MojoHost - For all your hosting needs, present and future. Tell them I sent ya! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
RIP Dodger. BEST.CAT.EVER
Industry Role:
Join Date: Dec 2002
Location: NYC Area
Posts: 18,450
|
Maybe
Update columnname where value = 0 set value =1? again i have non clue about the syntax
__________________
-uno icq: 111-914 CrazyBabe.com - porn art MojoHost - For all your hosting needs, present and future. Tell them I sent ya! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Apr 2004
Location: Toronto, ON
Posts: 1,706
|
Here you go:
update tablename set columnname=1 where columname=0 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
RIP Dodger. BEST.CAT.EVER
Industry Role:
Join Date: Dec 2002
Location: NYC Area
Posts: 18,450
|
I totally heart you.
__________________
-uno icq: 111-914 CrazyBabe.com - porn art MojoHost - For all your hosting needs, present and future. Tell them I sent ya! |
![]() |
![]() ![]() ![]() ![]() ![]() |