— 比較操作符
=
<>
<
— 邏輯操作符
— IS NULL
需要注意的是
— BETWEEN
— IN
— LIKE
— EXISTS
下面是一些邏輯操作符的使用
SELECT * FROM gamer WHERE AGE BETWEEN
SELECT * FROM gamer WHERE AGE IN (
SELECT * FROM gamer WHERE NAME LIKE
SELECT NAME FROM gamer
WHERE EXISTS(SELECT AGE FROM gamer WHERE AGE>
在SQL語言中
— 連接符
— AND
— OR
— NOT
下面是一些連接符的使用
SELECT NAME FROM gamer WHERE AGE>
SELECT NAME FROM gamer WHERE AGE =
SELECT NAME FROM gamer WHERE AGE NOT IN (
— 算術操作符
— 加——
— 減——
— 乘——
— 除——
使用算術運算符
SELECT * FROM gamer WHERE (AGE+LEVEL)>
除了這些常用的SQL語句之外
right
From:http://tw.wingwit.com/Article/program/SQL/201311/16268.html