mysql 查询
2023-03-21 17:58:55 2 举报
AI智能生成
mysql 查询
作者其他创作
大纲/内容
例题
语法:case-- when 条件1 then 结果1-- when 条件2 then 结果2-- when 条件3 then 结果3-- else 结果4-- end
分支主题
字符串函数
-- 关系条件 -- -> < >= <= != <>-- 逻辑条件-- -and or not-- 区间条件-- between 起始值 and 结束值-- 枚 举条件-- in(值1,值2) not in(值1,值2)-- 非空条件 sql中的null不能使用=或者!=来进行判断-- is null in not null-- 模糊查询-- like not like-- 占位符: -- %: 表示0个或者多个字符 -- _:表示一个字符
语法:select *from 表名 where 查询条件
条件查询
语法:select 时间函数(参数列表)
时间函数
语法:select 聚合函数 (列名) from 表明
聚合函数
数据库查询
0 条评论
回复 删除
下一页