把两个字段的和作为新的字段

把两个字段的和作为新的字段

sql语句select top 1 name,topic+retopic as topic from [user] order by topic desc

php写法

$from = array("id","regtype","name","exch","exeng","exmath","exgen","exske","excolor","excultotal","exspetotal","(excultotal+exspetotal) as total");

原文地址:https://www.cnblogs.com/jiqing9006/p/3607015.html