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

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

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");

posted @ 2014-03-18 10:07  TBHacker  阅读(409)  评论(0编辑  收藏  举报