实例 SQL 比较运算符不等于 <>

x
 
SELECT * FROM Products
WHERE Price <> 18;
        
                    

输出结果

ProductIDProductNameSupplierIDCategoryIDQuantityPerUnitPriceUnitsInStockUnitsOnOrderReorderLevelDiscontinued
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
7Uncle Bob's Organic Dried Pears3712 - 1 lb pkgs.30.000015010False
8Northwoods Cranberry Sauce3212 - 12 oz jars40.0000600False
9Mishi Kobe Niku4618 - 500 g pkgs.97.00002900True
10Ikura4812 - 200 ml jars31.00003100False
11Queso Cabrales541 kg pkg.21.0000223030False
12Queso Manchego La Pastora5410 - 500 g pkgs.38.00008600False
13Konbu682 kg box6.00002405False
14Tofu6740 - 100 g pkgs.23.25003500False
15Genen Shouyu6224 - 250 ml bottles15.50003905False
16Pavlova7332 - 500 g boxes17.450029010False
17Alice Mutton7620 - 1 kg tins39.0000000True
18Carnarvon Tigers7816 kg pkg.62.50004200False
19Teatime Chocolate Biscuits8310 boxes x 12 pieces9.20002505False
20Sir Rodney's Marmalade8330 gift boxes81.00004000False
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
26Gumb?r Gummib?rchen113100 - 250 g bags31.23001500False
27Schoggi Schokolade113100 - 100 g pieces43.900049030False
28R?ssle Sauerkraut12725 - 825 g cans45.60002600True
29Thüringer Rostbratwurst12650 bags x 30 sausgs.123.7900000True
30Nord-Ost Matjeshering13810 - 200 g glasses25.890010015False
31Gorgonzola Telino14412 - 100 g pkgs12.500007020False
32Mascarpone Fabioli14424 - 200 g pkgs.32.000094025False
33Geitost154500 g2.5000112020False
34Sasquatch Ale16124 - 12 oz bottles14.0000111015False
36Inlagd Sill17824 - 250 g jars19.0000112020False
37Gravad lax17812 - 500 g pkgs.26.0000115025False
38C?te de Blaye18112 - 75 cl bottles263.500017015False
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
43Ipoh Coffee20116 - 500 g tins46.0000171025False
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
51Manjimup Dried Apples24750 - 300 g pkgs.53.000020010False
52Filo Mix24516 - 2 kg boxes7.000038025False
53Perth Pasties24648 pieces32.8000000True
54Tourtière25616 pies7.450021010False
55Paté chinois25624 boxes x 2 pies24.0000115020False
56Gnocchi di nonna Alice26524 - 250 g pkgs.38.0000211030False
57Ravioli Angelo26524 - 250 g pkgs.19.500036020False
58Escargots de Bourgogne27824 pieces13.250062020False
59Raclette Courdavault2845 kg pkg.55.00007900False
60Camembert Pierrot28415 - 300 g rounds34.00001900False
61Sirop d'érable29224 - 500 ml bottles28.5000113025False
62Tarte au sucre29348 pies49.30001700False
63Vegie-spread7215 - 625 g jars43.90002405False
64Wimmers gute Semmelkn?del12520 bags x 4 pieces33.2500228030False
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
69Gudbrandsdalsost15410 kg pkg.36.000026015False
70Outback Lager7124 - 355 ml bottles15.0000151030False
71Flotemysost15410 - 500 g pkgs.21.50002600False
72Mozzarella di Giovanni14424 - 200 g pkgs.34.80001400False
73R?d Kaviar17824 - 150 g jars15.000010105False
74Longlife Tofu475 kg pkg.10.00004205False
75Rh?nbr?u Klosterbier12124 - 0.5 l bottles7.7500125025False
77Original Frankfurter grüne So?e12212 boxes13.000032015False