数据库
首页 > 数据库> > Mysql教程:(三)运算符:数学运算符

Mysql教程:(三)运算符:数学运算符

作者:互联网

运算符:数学运算符

mysql> select class,number,maths,maths+5 from score;

mysql>select class,number,chinese+maths+english from score;

mysql> select *,maths+chinese+english as total from score;

mysql> select *,maths+chinese+english as total from score order by total desc;

mysql> select class*2,number,maths+chinese+english as total from score order by total desc;

标签:教程,Mysql,运算符,score,mysql,maths,total,select
来源: https://www.cnblogs.com/yinzuopu/p/15516266.html