![]() |
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? |
UPDATE `tablename` SET `columnname`='1';
|
UPDATE tablename SET columnname=1 WHERE columnname=0
incase you have other numbers than 0 and 1 in that column |
He said that all the variables were 0, though :thumbsup
|
DELETE tablename
|
hmm i don't want to change the column name, just the values in the column
|
Maybe
Update columnname where value = 0 set value =1? again i have non clue about the syntax |
Here you go:
update tablename set columnname=1 where columname=0 |
I totally heart you.
|
All times are GMT -7. The time now is 02:41 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123