随笔分类 -  数据库

sql server数据库,mysql数据库,oracle数据库
摘要:一、视图中用到的函数: 1、decode(条件,值1,翻译值1,值2,翻译值2,...值n,翻译值n,缺省值)2、NVL(E1, E2)的功能为:如果E1为NULL,则函数返回E2,但此函数有一定局限,所以就有了NVL2函数。 拓展:NVL2函数:Oracle/PLSQL中的一个函数,Oracle在 阅读全文
posted @ 2022-07-19 11:09 猴猴手记 阅读(105) 评论(0) 推荐(0) 编辑
摘要:查询: 1.无条件 select * from student 2.单条件查询 select * from student where id=2 3.多条件查询 select * from student where id=2 and type='摇滚' 4.模糊条件查询 select * from 阅读全文
posted @ 2021-10-14 16:34 猴猴手记 阅读(47) 评论(0) 推荐(0) 编辑
摘要:DECLARE @oneCycles varchar(50); DECLARE Tey_Cursor CURSOR--定义游标 FOR (select col_id from project_column where col_id in (@endId))--查出需要的集合放到游标中 OPEN Te 阅读全文
posted @ 2021-05-27 16:41 猴猴手记 阅读(225) 评论(0) 推荐(0) 编辑

浏览器标题切换
浏览器标题切换end
点击右上角即可分享
微信分享提示