实例 SQL 比较运算符小于 <

 
SELECT * FROM Products
WHERE Price < 30;
                    

输出结果

ProductIDProductNameSupplierIDCategoryIDQuantityPerUnitPriceUnitsInStockUnitsOnOrderReorderLevelDiscontinued
1Chai1110 boxes x 20 bags18.000039010False
2Chang1124 - 12 oz bottles19.0000174025False
3Aniseed Syrup1212 - 550 ml bottles10.0000137025False
4Chef Anton's Cajun Seasoning2248 - 6 oz jars22.00005300False
5Chef Anton's Gumbo Mix2236 boxes21.3500000True
6Grandma's Boysenberry Spread3212 - 8 oz jars25.0000120025False
11Queso Cabrales541 kg pkg.21.0000223030False
13Konbu682 kg box6.00002405False
14Tofu6740 - 100 g pkgs.23.25003500False
15Genen Shouyu6224 - 250 ml bottles15.50003905False
16Pavlova7332 - 500 g boxes17.450029010False
19Teatime Chocolate Biscuits8310 boxes x 12 pieces9.20002505False
21Sir Rodney's Scones8324 pkgs. x 4 pieces10.00003405False
22Gustaf's Kn?ckebr?d9524 - 500 g pkgs.21.0000104025False
23Tunnbr?d9512 - 250 g pkgs.9.000061025False
24Guaraná Fantástica10112 - 355 ml cans4.50002000True
25NuNuCa Nu?-Nougat-Creme11320 - 450 g glasses14.000076030False
30Nord-Ost Matjeshering13810 - 200 g glasses25.890010015False
31Gorgonzola Telino14412 - 100 g pkgs12.500007020False
33Geitost154500 g2.5000112020False
34Sasquatch Ale16124 - 12 oz bottles14.0000111015False
35Steeleye Stout16124 - 12 oz bottles18.000020015False
36Inlagd Sill17824 - 250 g jars19.0000112020False
37Gravad lax17812 - 500 g pkgs.26.0000115025False
39Chartreuse verte181750 cc per bottle18.00006905False
40Boston Crab Meat19824 - 4 oz tins18.4000123030False
41Jack's New England Clam Chowder19812 - 12 oz cans9.650085010False
42Singaporean Hokkien Fried Mee20532 - 1 kg pkgs.14.00002600True
44Gula Malacca20220 - 2 kg bags19.450027015False
45Rogede sild2181k pkg.9.500057015False
46Spegesild2184 - 450 g glasses12.00009500False
47Zaanse koeken22310 - 4 oz boxes9.50003600False
48Chocolade22310 pkgs.12.7500157025False
49Maxilaku23324 - 50 g pkgs.20.0000106015False
50Valkoinen suklaa23312 - 100 g bars16.250065030False
52Filo Mix24516 - 2 kg boxes7.000038025False
54Tourtière25616 pies7.450021010False
55Paté chinois25624 boxes x 2 pies24.0000115020False
57Ravioli Angelo26524 - 250 g pkgs.19.500036020False
58Escargots de Bourgogne27824 pieces13.250062020False
61Sirop d'érable29224 - 500 ml bottles28.5000113025False
65Louisiana Fiery Hot Pepper Sauce2232 - 8 oz bottles21.05007600False
66Louisiana Hot Spiced Okra2224 - 8 oz jars17.0000410020False
67Laughing Lumberjack Lager16124 - 12 oz bottles14.000052010False
68Scottish Longbreads8310 boxes x 8 pieces12.500061015False
70Outback Lager7124 - 355 ml bottles15.0000151030False
71Flotemysost15410 - 500 g pkgs.21.50002600False
73R?d Kaviar17824 - 150 g jars15.000010105False
74Longlife Tofu475 kg pkg.10.00004205False
75Rh?nbr?u Klosterbier12124 - 0.5 l bottles7.7500125025False
76Lakkalik??ri231500 ml18.000057020False
77Original Frankfurter grüne So?e12212 boxes13.000032015False