摘要:
--1.使用interval select trunc(sysdate) + (interval '1' second) * 1 from dual; select trunc(sysdate) + (interval '1' minute) * 1 from dual; select trunc(sysdate) + (interval '1' hour) * 1 from dual... 阅读全文
摘要:
1.vsize(x) 返回X的大小(字节)数 SQL> select vsize(user),user from dual; VSIZE(USER) USER ----------- ------------------------------ 6 SYSTEM 2.uid 返回标识当前用户的唯一整数 sys用户: SQL> select username,user_id fr... 阅读全文
摘要:
--方案1:如果有索引,先把索引删除后,再update,最后把索引重新创建一下因为索引对update影响很大。 --方案2:1.create table newA as select id,name,age+1 age from A;2.drop table A;3.rename newA to A 阅读全文