Home > Backend Development > PHP Tutorial > 急怎么读取数据表中分数计算总分后写入另一个数据表中

急怎么读取数据表中分数计算总分后写入另一个数据表中

WBOY
Release: 2016-06-13 12:41:09
Original
1057 people have browsed it

求助:急!如何读取数据表中分数计算总分后写入另一个数据表中?
我设定了一个打分表tb_xmpf,里面列有项目名称xmpf_xm、评委姓名xmpf_user、和评委给出的分数xmpf_small_zf,现在想计算每个项目所得到的总分和平均分,写入项目表tb_xm中xm_zf、xm_avg两列中,并按照xm_zf输出表格,刚接触PHP,这种复杂一点的数据库调用还真不太会用,请各位大侠帮我想想!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template