早上客戶那邊要匯出一些記錄和記錄所在類別的全路徑(如表A是主表,表B是類別,A個外鍵sort_id關聯到B,B除了id還有parent_id),稍微折騰了下還是弄出來了,記錄一下:ps:kbs_entry可以看成是上面提到的表A,kbs_sort就是表B select replace(replace(a.article_or_point,'S','促銷活動'),'A','文章') as 屬性,c.path as 所屬目錄,a.subject as 標題 from( select
本預存程序實現建立表和刪除表,並應用到日期函數sysdate,add_months,PL/SQL Devoleper 8.0開發 create or replace procedure P_CREATE_HISTORY_TABLEisV_SQL String(31000) :='';begin FOR i in 1..2 LOOP declare num number; begin select count(1) into num from user_tables
在frameworks/base/services/jni添加:com_android_server_HelloService.cpp內容如下:/* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with
create user cmsuser identified by "cmsuser"; SQL> create user uumcuser identified by "password";User created.SQL> grant connect,dba to uumcuser;Grant succeeded.SQL> grant exp_full_database,imp_full_database,resource,create any sequence to
oracle中取餘是用函數mod(numer1,number2),其返回的值為其餘數值。如:輸出1~13中所有不是3的倍數的整數數值。DECLARE --i NUMBER; BEGIN FOR i IN 1..13 LOOP IF MOD(i,3) != 0 THEN dbms_output.put_line('不是3的倍數的整數:'||+i); END IF; END LOOP; EXCEPTION WHEN OTHERS
---字串轉日期select to_date('2011-11-30 18:00:00', 'yyyy-mm-dd hh24:mi:ss') from dual;--select * from scott.dept d where e.deptno=d.deptno and d.deptno=10;select sysdate, add_months(sysdate, 12) from dual;--時間和數字直接加減select sysdate+6/24/60,sysdate from
user_XXX all_XXX dba_XXX --資料字典儲存的是oracle系統資訊,分為這三個。-------------------------------------系統使用者、表、索引資訊-----------------------------------select sum(bytes)/(1024*1024) as "size(M)" from user_segments where