
insert: 插入数据 update: 更新数据 order by: 排序 create table: 创建表 drop table: 删除表 select: 查询数据 delete: 删除数据 like: 查找类似值 between: 区间 where: 条件过滤 and & or: 逻辑运算符distinct: 去重 in: 指定多个可能的值 as: 别名
连表:right join: 右连接 left join: 左连接 inner join: 内连接
函数:count: 行数 sum: 求和 avg:平均值 if: 条件判断 abs: 绝对值 case: 多条件判断 contact: 连接字符串 lower/upper: 大小写转换 replace: 替换字符 trim: 去除字符串首尾空格 round: 四舍五入 max/min: 最大/最小值 now(): 当前时间 year/month/day: 年月日 substring: 截取字符串
评论已关闭