MySQL 实例
创建于 2024-12-02 /
29
字体:
[默认]
[大]
[更大]
MySQL SELECT
SELECT Column SELECT * SELECT DISTINCT SELECT COUNT(DISTINCT olumn_name)MySQL WHERE
WHERE Clause Text Fields vs. Numeric FieldsMySQL AND, OR and NOT
AND OR Another OR NOT Combining AND and OR Combining AND and NOTMySQL ORDER BY
ORDER BY ORDER BY DESC ORDER BY Several Columns ORDER BY Several Columns + ASC and DESCAdvertisement -->
MySQL NULL Values
IS NULL Operator IS NOT NULL OperatorMySQL LIMIT
LIMIT LIMIT with WHEREMySQL MIN() and MAX()
MIN() MAX()MySQL COUNT(), AVG() and SUM()
COUNT() AVG() SUM()MySQL LIKE
Select all table rows starting with "a" Select all table rows ending with "a" Select all table rows that have "or" in any position Select all table rows that have "r" in the second position Select all table rows that starts with "a" and ends with "o" Select all table rows that starts with "a" and are at least 3 characters in length Select all table rows that does NOT start with "a"MySQL Wildcards
The % Wildcard The _ WildcardMySQL IN
IN NOT IN IN with SELECTMySQL BETWEEN
BETWEEN NOT BETWEEN BETWEEN with IN BETWEEN Text Values NOT BETWEEN Text Values BETWEEN Date ValuesMySQL Aliases
Alias for Columns Two Aliases An Alias that contains multiple columns Alias for TablesMySQL Joins
INNER JOIN - Join two tables INNER JOIN - Join three tables LEFT JOIN RIGHT JOIN CROSS JOIN Self JoinMySQL UNION
UNION UNION ALL UNION with WHERE UNION ALL with WHEREMySQL GROUP BY
GROUP BY GROUP BY and ORDER BY GROUP BY with JOINMySQL HAVING
HAVING and GROUP BY HAVING and ORDER BY HAVING and WHEREMySQL EXISTS
EXISTS - Price less than 20 EXISTS - Price equals 20MySQL ANY and ALL
ANY - Example 1 ANY - Example 2 ANY - Example 3 ALL - Example 1 ALL - Example 2MySQL CASE
CASE 1 CASE 2MySQL Comments
Single line Comment Single line comment at the end of a line Single line comments to ignore statement Multi line comment Multi line comment to ignore many statementMySQL 数据库
MySQL 数据库教程可以在这里找到:
MySQL Create DB MySQL Drop DB MySQL Create Table MySQL Drop Table MySQL Alter Table MySQL Constraints MySQL Not Null MySQL Unique MySQL Primary Key MySQL Foreign Key MySQL Check MySQL Default MySQL Create Index MySQL Auto Increment MySQL Dates MySQL Views
0 人点赞过