day1:
use sql_store; -- 使用数据库,-- 表示注释不会运行。
select * from customers; -- 查找顾客表所有数据
select first_name
from customers
where customer_id = 1
order by first_name; -- 按照first name进行排序。
-- 查找顾客ID为1的顾客姓氏
-- from、 where、 order by是可选的
select distinct state
from customers;
-- 查找州的唯一列表
select * from products;
select name,unit_price,unit_price *1.1 as 'new price'
from products;
-- as 关键词用来取别名来表示结果集,空格名称需要用单引号或者双引号来表示