我的content表里有一个 title 字段 和 aliastitle 字段。现在要求显示aliastitle 字段的内容,但前期的数据这个字段有为空的,所以要求,把 aliastitle 为空的更新为 title 的内容,请问怎么处理呢?谢谢
------解决方案--------------------
update content
set aliastitle= title
where aliastitle is null
------解决方案--------------------
update content set aliastitle=title where aliastitle is null