Home > Backend Development > PHP Tutorial > SQL的有关问题

SQL的有关问题

WBOY
Release: 2016-06-13 13:28:32
Original
856 people have browsed it

SQL的问题
我mysql 这3个字段都在一个表中 有一个字段rd的值 是字段out的值减去字段pv的值 这个rd字段怎么弄

------解决方案--------------------

SQL code
update tt set rd=`out`-`pv`; <div class="clear">
                 
              
              
        
            </div>
Copy after login
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