>=
运算符说明
>= 运算符用于比较运算。当 >= 左边运算数值大于或等于 >= 右侧运算数值时,>= 运算符返回结果为 true。
语法结构
1. > SELECT x >= y;
示例
1. mysql> SELECT 2 >= 2;
2. +--------+
3. | 2 >= 2 |
4. +--------+
5. | true |
6. +--------+
7. 1 row in set (0.01 sec)
1. create table t1 (spID smallint,userID bigint,score int);
2. insert into t1 values (1,1,1);
3. insert into t1 values (2,2,2);
4. insert into t1 values (2,1,4);
5. insert into t1 values (3,3,3);
6. insert into t1 values (1,1,5);
7. insert into t1 values (4,6,10);
8. insert into t1 values (5,11,99);
10. mysql> select userID,spID,score from t1 where spID>=userID*score;
11. +--------+------+-------+
12. | userid | spid | score |
13. +--------+------+-------+
14. | 1 | 1 | 1 |
15. +--------+------+-------+
16. 1 row in set (0.01 sec)
