摘要: 1、oracle复制另外一张表结构到一张新表中 2、将数据和表结构复制过来 阅读全文
posted @ 2019-06-02 11:16 回忆里的小男孩 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 比如 if(!!last) 这个就表示 if(last || false)。将判断的类型,强转成boolean类型。如果last是null(或者undefine)的话,!last,返回的就是true 。 加了两个叹号后,明确的设置了变量的值,返回的boolean就是根据变量的实际值返回的。(如果是实 阅读全文
posted @ 2019-06-02 11:14 回忆里的小男孩 阅读(419) 评论(0) 推荐(0) 编辑
摘要: select * from table_name as of timestamp to_timestamp('2018-12-20 00:00:00', 'yyyy-mm-dd hh24:mi:ss'); --选择恢复的时间 阅读全文
posted @ 2019-06-02 11:14 回忆里的小男孩 阅读(960) 评论(0) 推荐(0) 编辑
摘要: Oracle中,利用sql语句中的函数实现保留两位小数和四舍五入保留两位小数; select trunc(1.23856789,2) from dual round(m,n) 可以四舍五入 trunc(m,n) 直接丢弃,不四舍五入 阅读全文
posted @ 2019-06-02 11:13 回忆里的小男孩 阅读(6398) 评论(0) 推荐(0) 编辑
摘要: 1.NVL函数 从两个表达式返回一个非 null 值。 语法 NVL(eExpression1, eExpression2) 参数 eExpression1, eExpression2 如果 eExpression1 的计算结果为 null 值,则 NVL( ) 返回 eExpression2。如果 阅读全文
posted @ 2019-06-02 11:12 回忆里的小男孩 阅读(2586) 评论(0) 推荐(0) 编辑
摘要: 查询数据库中被锁住的表Select c.sid,c.serial#,d.name,b.object_name,c.username,c.program,c.osuser from gv$Locked_object a, All_objects b, gv$session c, audit_actio 阅读全文
posted @ 2019-06-02 11:11 回忆里的小男孩 阅读(968) 评论(0) 推荐(0) 编辑
摘要: js中 replace(/\//g, '') 什么作用. 正则表达式 replace(/\//g, '') 的作用是把/替换成''。 用法如下: 比如:var aa= "adsdd/sdsd12/"; bb=aa.replace(/\//g, '') ; 那么bb=adsddsdsd12 说明: 1 阅读全文
posted @ 2019-06-02 11:09 回忆里的小男孩 阅读(751) 评论(0) 推荐(0) 编辑
摘要: 一、语法 大致写法:select * from some_table [where 条件1] connect by [条件2] start with [条件3]; 其中 connect by 与 start with 语句摆放的先后顺序不影响查询的结果,[where 条件1]可以不需要。 [wher 阅读全文
posted @ 2019-06-02 11:06 回忆里的小男孩 阅读(471) 评论(0) 推荐(0) 编辑