update entity_table set views = views + 1 where id = {id of entity}
views列可以为空.因此,仅当列的值不为null时才有效.
如果它为null,如何将此值设置为1并以其他方式增加?
谢谢.
UPDATE entity_table SET views = Coalesce(views,0) + 1