条件where

2017-10-31  本文已影响0人  wayoona

语法:

select column1, column2 from table_name where [condition]

可以使用比较或逻辑运算符指定条件:

and:    select * from company where age >= 25 and salary >= 65000;

not null:  select * from company where age is not null;

like:    select * from company where name like '%ki';

in:  select * from company where age in ( 25, 27 );

between:  select * from company where age between 25 and 27;

上一篇下一篇

猜你喜欢

热点阅读