标签:
INSERT [INTO] tbl_name [(col_name,...)] {VALUES | VALUE} ({expr | DEFAULT},...),(...),... //法二:区别在于,此方法可以使用子查询(SubQuery) INSERT [INTO] tbl_name SET col_name={expr|DEFAULT},... //法三:此方法可以将查询结果插入到指定数据表 INSERT [INTO] tbl_name [(col_name,...)] SELECT ...
UPDATE [LOW-PRIORITY] [IGNORE] table_reference SET col_name1 = {expr1|DEFAULT} [,col_name2 = {expr2|DEFAULT}]... [WHERE where_condition]
DELETE FROM tbl_name [WHERE where_condition]
SELECT select_expr [, select_expr ...] [ FROM table-references [WHERE where_condition] [GROUP BY {col_name | position} [ASC|DESC], ...] [HAVING where_condition] [ORDER BY {col_name | expr | position} [ASC|DESC], ...] [LIMIT {[offset,] row_count | row_count OFFSET offset}] ]
标签:
原文地址:http://www.cnblogs.com/little-YTMM/p/5428129.html