查询(select)
select * from 表名 [where 条件];
select 字段1,字段2 from 表名 [where 条件];
where⼦句
where
⼦句在
sql
语句中扮演了重要⻆⾊,主要通过⼀定的运算条件进⾏数据的筛选,在查询,删除,修改中都有使⽤。
select
*
from
class_1
where
age %
2
=
0
;
查找练习举例:
查找⼈⺠教育出版社出版的图书
select * from books where press = "人民教育出版社"