sql (3) where

The WHERE clause is used to specify selection criteria.
Syntax
SELECT column name FROM table name WHERE column operator value

Use of quotation marks
Note that we used single quotation marks around the conditional value in the example.

SQL uses single quotes to surround text values ​​(most database systems also accept double quotes). If it's a number, don't use quotes

New table Table_2


Adamas john 3
Bush mike 2
carter thomas 1
gates lucy 2
Query:
SELECT * FROM Table_2 WHERE COUNT>2
Result:

Adamas john 3

 

2018-04-26     10:39:26

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324929265&siteId=291194637