So I have a column named "votes" which have the value "NULL" when the row first gets created. At the end of the day, I will add the votes coming from another table and put all the votes into the correct row. The problem is that if it is the first time the row gets votes, I will have to write SET votes = '$votes' but if it already has votes I will have to write SET votes = votes + '$votes'. Is there any easy way to detect if it is null or if it has an value?
votes + '$votes'would try to add a string to a number. Just usevotes + $votes