mysql课件第五章数据查询1.ppt

第十章 查询数据 内容 查询语句的基本语法 单表查询 多表连接查询 子查询 合并查询结果 SELECT 语句的语法 SELECT selection_list 选择哪些列 FROM table_list 从何处选择行 WHERE primary_constraint 行必须满足什么条件 GROUP BY grouping_columns 怎样对结果分组 HAVING secondary_constraint 行必须满足的第二条件 ORDER BY sorting_columns 怎样对结果排序 LIMIT count 结果限定 单表查询 查询表中所有数据 select * from table_name select 列出表中所有的字段名 from table_name 查询特定列 查询特定行 使用where字句 查询指定行 查询条件 = = = != ! ! between 取值1 and 取值2 包括临界值 not between 取值1 and 取值2 in not in like not like regexp 模糊查询 is null

文档评论(0)

1亿VIP精品文档

相关文档