如何进行这种排序? mysql数据库,有一个表t1,字段:a,b,c,d我想做运算,a+b-c形成的结果集合,按照升序(降序也可)排列,怎么做呢?select a+b-c as result from t1 order by result asc通不过,请帮助我,谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你用的mysql版本号是多少?报什么错?我的似乎可以通过。mysql> create table t7(a int, b int, c int, d int);Query OK, 0 rows affected (0.03 sec)mysql> insert into t7 values(1, 1, 1, 1), (2, 3, 4, 1);Query OK, 2 rows affected (0.00 sec)Records: 2 Duplicates: 0 Warnings: 0mysql> select a+b-c as result from t7 order by result;+--------+| result |+--------+| 1 || 1 |+--------+2 rows in set (0.00 sec)mysql> mysql关于插入语句问题 mysql 不能 REPAIR TABLE,所有的表都不能REPAIR,表是好的。 left join 不起作用,高手帮忙看下 大家在生产库都用什么监控MYSQL啊 菜鸟提问,不知安装哪个版本的Mysql 如何知道mysql分区时对应的哪个字段呢? com.mysql.jdbc.CommunicationsException 子查询如何查多列? 求一条sql语句写法 有谁能提供linux下的MySQL 3.23.49 的jdbc驱动? 请问MySql中如何判断时间段内是否有重复? PostgreSQL安装完了默认是大小写不敏感的,怎么调成默认所有数据库大小写敏感
我的似乎可以通过。mysql> create table t7(a int, b int, c int, d int);
Query OK, 0 rows affected (0.03 sec)mysql> insert into t7 values(1, 1, 1, 1), (2, 3, 4, 1);
Query OK, 2 rows affected (0.00 sec)
Records: 2 Duplicates: 0 Warnings: 0mysql> select a+b-c as result from t7 order by result;
+--------+
| result |
+--------+
| 1 |
| 1 |
+--------+
2 rows in set (0.00 sec)mysql>