2022年2月9日
摘要: ​ CREATE TABLE "TEST6" ( "ID" VARCHAR2(30), "NAME" VARCHAR2(30), "AGE" NUMBER(2,0), "SEX" VARCHAR2(2), "ENAME" VARCHAR2(30), "ADDTIME" DATE ) insert i 阅读全文
posted @ 2022-02-09 15:29 last2233 阅读(91) 评论(0) 推荐(0)
摘要: 1.查看表或索引等占用内存情况 Select Owner, Segment_Name, Segment_Type, Bytes / 1024 / 1024 From Dba_Segments Where Tablespace_Name = 'APPS_TS_TX_DATA' And Bytes > 阅读全文
posted @ 2022-02-09 11:14 last2233 阅读(67) 评论(0) 推荐(0)
摘要: 1.查询表空间利用率 --1G=1024MB --1M=1024KB --1K=1024Bytes --1M=11048576Bytes --1G=1024*11048576Bytes=11313741824Bytes SELECT d.tablespace_name, space "SUM_SPA 阅读全文
posted @ 2022-02-09 10:48 last2233 阅读(183) 评论(0) 推荐(0)
  2021年8月30日
摘要: 增(create & save) CREATE # 方法一 if req.method == "POST": u = req.POST.get("username", None) s = req.POST.get("sex", None) e = req.POST.get("email", None 阅读全文
posted @ 2021-08-30 18:12 last2233 阅读(42) 评论(0) 推荐(0)
  2021年8月26日
摘要: 1. 在app下创建一个名为templatetags(必需,且包名不可变)的包 ,在该包下创建了一个名为my_tags(名称自定义)的文件。 2.my_tags文件 from django import template register = template.Library() # registe 阅读全文
posted @ 2021-08-26 14:15 last2233 阅读(86) 评论(0) 推荐(0)
  2020年10月14日
摘要: 1. 面向对象类的基本使用 知识点: 属性:类属性、实例对象属性 方法:实例方法、类方法、静态方法 类可以调用哪些内容:类属性、类方法、静态方法 代码示例: class A(object): # 类属性 class_a = 20 def __init__(self): # 实例对象属性 self.a 阅读全文
posted @ 2020-10-14 13:45 last2233 阅读(147) 评论(0) 推荐(0)
  2020年9月25日
摘要: 1. 直接用单引号,单引号的使用是就近配对,即就近原则。从第二个单引号开始被视为转义符 v_sql := ' insert into BJTONGRENTANGTEMPTB select distinct h.sellerid,h.sellercode,h.sellername,h.prodcode 阅读全文
posted @ 2020-09-25 10:21 last2233 阅读(1670) 评论(0) 推荐(0)
  2020年8月25日
摘要: 1.创建用户 create user username identified by password; username:用户名 password: 密码 --创建用户 apps, 密码 apps create user apps identified by apps; 2.创建表空间 create 阅读全文
posted @ 2020-08-25 18:10 last2233 阅读(599) 评论(0) 推荐(0)
  2020年8月17日
摘要: 1.可以用于记录错误日志 在前一个存储过程中,如果创建bom失败,将执行存储过程2写入错误信息,自治事务的提交,不影响主存储过程1,回滚存储过程1,也不影响自治事务存储过程2已保存的数据。 伪代码存储过程1 -- 创建BOM Cretae_Bom(x_Return_Status => x_Retur 阅读全文
posted @ 2020-08-17 17:17 last2233 阅读(114) 评论(0) 推荐(0)