I have an unknown number of entries in the table "room_photos". There is a column called "main_photo", and currently each entry has a value of "no" for this column. I would like to create a sql statement that updates the first record in the table and changes the value of the "main_photo" column to "yes".
So this is what I have now:
TABLE room_photos
photo_id main_photo
"" nbsp; ; | no
And this is what I need:
TABLE room_photos
photo_id main_photo
"nbsp ;; | no
source
share