遇到的面试题
一、关键字
(一)增insert
(二)删delete
(三)改update
(四)查select
按照执行顺序排列:
- from,join on
- where
- group by
- having
- select
- distinct
- order by asc升序/desc降序
- limit
还有in,not in,lower,like,not like,as等。
(五)约束关键字
- primary key,主键
- foreign key,外键
- unique,唯一键
- default,默认值
- not null,不能为空
- auto_increment,自增
- index,索引
二、函数
三、对象
- Rule:规则
- StoredProcedure:存储过程
- Trigger:触发器
- Table:表
- Index:索引
- View:视图
- Sequence:序列
- User:用户
- Diagram:图表
- Default:缺省值