>=

Operator Description

The >= operator is used for comparison operations. When the value of the left operation on the >=operation is greater than or equal to the value of the right operation on the >= operator returns the result of the >= operator.

Grammar Structure

SQL
SELECT x >= y;

Example

Text
mysql> SELECT 2 >= 2;
+--------+
| 2 >= 2 |
+--------+
| true   |
+--------+
1 row in set (0.01 sec)
Text
create table t1 (spID smallint,userID bigint,score int);
insert into t1 values (1,1,1);
insert into t1 values (2,2,2);
insert into t1 values (2,1,4);
insert into t1 values (3,3,3);
insert into t1 values (1,1,5);
insert into t1 values (4,6,10);
insert into t1 values (5,11,99);

mysql> select userID,spID,score from t1 where spID>=userID*score;
+--------+------+-------+
| userid | spid | score |
+--------+------+-------+
| 1      | 1    | 1     |
+--------+------+-------+
1 row in set (0.01 sec)
Last updated on