| 单个表的 SELECT 语句 / 创建比较条件 | |
图: 查询
SELECT fname, lname, city, state
FROM customer
WHERE zipcode NOT BETWEEN '94000' AND '94999'
ORDER BY state;
图: 查询结果
fname lname city state
Frank Lessor Phoenix AZ
Fred Jewell Phoenix AZ
Eileen Neelie Denver CO
Jason Wallack Wilmington DE
Marvin Hanlon Jacksonville FL
James Henry Brighton MA
Bob Shorter Cherry Hill NJ
Cathy O'Brian Princeton NJ
Kim Satifer Blue Island NY
Chris Putnum Bartlesville OK