I wanted to ask if there is a way to update an entire column with the same value. I want to run '0' down a column or '1'. I can use a php loop to do it but it will involve multiple DB calls etc.
Hopeing for a SQL statement that can run the same value down an entire mysql column.
cheers
Something a simple as UPDATE table1 SET column1=1;
should do it.
UPDATE table_name SET column_name = 0
this will set the column value to 0 for all records, if this it want you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With