Oracle中使用遊標轉換資料表中指定欄位內容格式(拼音轉數字)應用情境:將Oracle資料表TB_USER中欄位NNDP的內容中為[sannanyinv]轉換為[3男1女]主要指令碼:一個遊標指令碼+分割字串函數+拼音轉數字指令碼操作步驟如下:1、建立類型 create or replace type splitTable is table of varchar2(100);2、建立函數fn_splitString(功能是將字串分割成多條記錄)--測試語句select * from
用預存程序批次更新表,預存程序批次更新表最近做了一個需求,需要批次更新資料庫表,但是因為涉及到的資料較多(千萬條),如果直接用sql更新,估計會把pl/sql弄垮sql如下:update product set online_flag = '0' where status = 'ON'所以,寫了一個預存程序,以備忘:declare cursor product_id_list is select product_id from product where status
Mysql HA-Install Keepalived+LVS+Mysql(雙主) On Redhat 6.3,keepalivedlvs主機資訊:調度節點:Name:lvsOS:Redhat 6.3IP:192.168.56.235VIP:192.168.56.236資料節點1:Name:zbdba1OS:Redhat 6.3IP:192.168.56.230資料節點2:Name:zbdba2OS:Redhat
使用cgroup 限制進程的磁碟io,cgroup進程磁碟iocat /etc/cgconfig.conf ## Copyright IBM Corporation. 2007## Authors: Balbir Singh <balbir@linux.vnet.ibm.com># This program is free software; you can redistribute it and/or
ORA-14099: all rows in table do not qualify for specified partition,ora-14099qualify1. 建立分區表create table range_part_range(id number, deal_date date, contents varchar2(1000))partition by range(deal_date)( partition p1 values less than (to_date('
物理機串連虛擬機器資料庫,物理虛擬機器資料庫第一步:虛擬機器與物理機互ping開啟虛擬機器,然後虛擬機器ip現在物理機和虛擬機器應該就能相互連信了第二步:載入設定檔找到虛擬機器資料庫設定檔tnsnames.ora..\oracle\product\10.1.0\Db_1\NETWORK\ADMIN複製裡面的設定檔加到物理機的資料庫連接設定檔。具體操作如下:開啟plsql,help -> support
MyBatis的Mapper設定檔的parameterType用法,mybatismapper.xml在MyBatis的select、insert、update、delete這些元素中都提到了parameterType這個屬性。MyBatis現在可以使用的parameterType有基礎資料型別 (Elementary Data Type)和JAVA複雜資料類型基礎資料型別 (Elementary Data Type):包含int,String,Date等。基礎資料型別 (Elementary