且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2022-09-05 23:35:22

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

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


本文转自TBHacker博客园博客,原文链接:http://www.cnblogs.com/jiqing9006/p/3607015.html,如需转载请自行联系原作者