標籤:-函數 函數像一個黑盒子一樣(看不到裡邊的構造),有參數傳回值,可以為我們完成一定的功能。-單行 這種函數會對結果中的每一行計算一次,每行返回一個結果,單行概念區別於分組函數。單行函數主要分為以下五類:字元函數、數字函數、日期函數、轉換函式、通用函數;一、字元型函數---字元處理-大小寫轉換例子:寫一個SQL,將‘I love Sql‘轉換成全大寫,全小寫和首字母大寫的形式。SELECT UPPER (‘I love Sql‘),LOWER(‘I love
標籤:excel串連列名產生oracle注釋notes: A2為列名,B2為注釋="comment on column ColAgreementHeader."&A2&" is q‘{"&B2&"}‘;" 效果如下: comment on column table1.Id is q‘{PK}‘;comment on column table1.col1 is q‘{Counterparty Organization ID}‘;comment on
標籤:1.查看所有使用者: select * from dba_users; select * from all_users; select * from user_users;2.查看使用者或角色系統許可權(直接賦值給使用者或角色的系統許可權):select * from dba_sys_privs; select * from user_sys_privs;SQL> select * from user_sys_privs;USERNAME
標籤:ORA-28000: the account is locked-的解決辦法2009-11-11 18:51ORA-28000: the account is locked第1步:使用PL/SQL,登入名稱為system,資料庫名稱不變,選擇類型的時候把Normal修改為Sysdba;第2步:選擇myjob,查看users;第3步:選擇system,右擊點擊“編輯”;第4步:修改密碼,把“帳戶被鎖住”的勾去掉;第5步:點擊“應用&
標籤:1.建立測試表並準備測試資料[email protected]> create table a (a number(1),b number(1),c number(1));[email protected]> create table b (a number(1),d number(1),e number(1));[email protected]> insert into a
標籤:最近在學習的過程中,發現一個挺有意思的函數,它可實現對列值的拼接。下面我們來看看其具體用法。用法:對其作用,官方文檔的解釋如下:For a specified measure, LISTAGG orders data within each group specified in the ORDER BY clause and then concatenates the values of the measure