摘要: https://github.com/lag971131194/tea 阅读全文
posted @ 2024-03-29 22:56 十方劫 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 一次性响应:HttpResponse类及其子类、JsonResponse类 流式响应:SteamingHttpResponse类、FileResponse类 文件下载为例 #HttpResponse方式,文件内容一次性响应,仅适合小文件 def file_download(request): wit 阅读全文
posted @ 2024-02-29 19:14 十方劫 阅读(8) 评论(0) 推荐(0) 编辑
摘要: django.views.decorators.http 路由不能判断HTTP请求的类型 Django通过decorators在视图函数前进行基本判断,格式如下: 这段代码my_view实现只处理GET和POST方法,其他方法将被过滤掉 from django.views.decorators.ht 阅读全文
posted @ 2024-02-29 17:07 十方劫 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-03-15 14:40 十方劫 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 模版参数/全局参数 1.模版-模版参数 或 服务器-全局参数 2.添加参数,设定默认值 3.进入控件设置,进行控件和参数的绑定,点击自动添加,选择相应的控件,参数和控件名称相同,控件里的值就可以给到参数。 4.给父格添加过滤,实现上面的参数对下面的报表进行过滤 5.给控件设置数据字典,可以让控件有选 阅读全文
posted @ 2021-11-11 15:59 十方劫 阅读(71) 评论(0) 推荐(0) 编辑
摘要: PL/SQL函数和过程示例 函数尽量不用in,out,in out 根据三角形的三边长返回面积 create or replace function calcTriangleArea(a number, b number, c number) return number is p number := 阅读全文
posted @ 2021-09-24 11:24 十方劫 阅读(72) 评论(0) 推荐(0) 编辑
摘要: SQL数据类型 在SQL中适用的数据类型及子类型、数据类型比较规则、数据转换、格式模型等,在PL/SQL中均适用 但以下除外: 最大值不一样,例如 VARCHAR2,在SQL中最大是4000字节,而在PL/SQL中是32767字节BINARY_FLOAT和 BINARY_DOUBLE类型中多了一些常 阅读全文
posted @ 2021-09-23 08:43 十方劫 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 在sqlplus中serveroutput是默认关闭的,使用下面的方法可以打开 set serveroutput on 显示随机数 begin dbms_output.put_line(dbms_random.value(1,100)); end; declare rnd number; begin 阅读全文
posted @ 2021-09-22 10:43 十方劫 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 用途--查询上下级 查询职位为总裁的雇员及其下属的相关信息 select empno, ename, job, mgr, deptno, level from emp start with job = 'PRESIDENT' connect by prior empno = mgr; 格式化 sel 阅读全文
posted @ 2021-09-17 17:44 十方劫 阅读(566) 评论(0) 推荐(0) 编辑
摘要: select group_id() gid, e.deptno, count(*) from emp e, salgrade s where sal between losal and hisal group by cube(e.deptno, e.deptno) order by deptno, 阅读全文
posted @ 2021-09-17 11:43 十方劫 阅读(260) 评论(0) 推荐(0) 编辑