??xml version="1.0" encoding="utf-8" standalone="yes"?> 用户Ҏ一些表面现象就断定错误的原因?br />其实我们也时常是通过一些表面的现象Q去判断事物的本质呢Q?/p>
下次再下什么断a的时候,要仔l想惟?/p>
]]>
BEFORE INSERT OR UPDATE ON INVENTORY_OTHERS_MSTR
FOR EACH ROW
BEGIN
IF (:NEW.TOTL_LEFT<>:OLD.TOTL_LEFT
OR :NEW.TOTL_QTY<>:OLD.TOTL_QTY
OR :NEW.TOTL_RESERVED<>:OLD.TOTL_RESERVED
OR :NEW.HCARE_RESERVED_QTY<>:OLD.HCARE_RESERVED_QTY)
THEN INSERT INTO INVENTORY_OTHERS_MSTR_TRACE (OTHERS_MSTR_ID, CATALOGUE_MSTR_ID, LAST_UPDATED_BY, LAST_UPDATED_ON, LAST_UPDATED_AT, CHECK_IND, LOCK_IND, LOC_IND, MAINTAIN_QTY, TOTL_QTY, TOTL_RESERVED, TOTL_LEFT, TOTL_LOAN, HCARE_RESERVED_QTY, LOC_ID)
VALUES (:OLD.OTHERS_MSTR_ID, :OLD.CATALOGUE_MSTR_ID,
:OLD.LAST_UPDATED_BY, :OLD.LAST_UPDATED_ON,
:OLD.LAST_UPDATED_AT, :OLD.CHECK_IND, :OLD.LOCK_IND, :OLD.LOC_IND, :OLD.MAINTAIN_QTY, :OLD.TOTL_QTY, :OLD.TOTL_RESERVED, :OLD.TOTL_LEFT, :OLD.TOTL_LOAN, :OLD.HCARE_RESERVED_QTY, :OLD.LOC_ID);
END IF;
END;
/
参考:http://www.chinaunix.net/jh/21/21696.html
]]>
]]>
后果?可想而知……一夜无?原以为最多长旉无法入眠,实事完全Z意料,像我睡眠q么好的?居然整晚都没有睡着,直到早上5点半以后意志才开始糊?睡了一会儿.
q是我第二次的失?当然两次的原因都相同,白天睡太多了!q次比上ơ好很多,虽然仅睡了一个小?但完全没有感觉到_不好!虽然如此q是军_今天晚上一定要补回来!
]]>
d的北京出差第一ơ看C明星---梅婷.是看到她们在拍摄电视剧<靠近?温暖?gt;,不知道我们看到的场景在连l剧中能否发?呵呵,好想ȝ来看?
]]>
l于由家里摸索到了公交R站,一路上都战战兢兢的Q上了公交R觉得g要安全些了,公交车师傅ؓ了安全v见,开车速度明显比往常慢了不?倍,心想着q到在所隑օ了.
大雾天h们还是要l箋上班Q由于雾的媄响公交R开的慢Q发的慢Q一路上{R的h特别多,有的车站C200Z多,庞大的上班队伍!
车子~慢的行驶中Q\上还坏了一ơ,N员发动R上的男同胞们下R推RQ呵呵,q就是前几天我看到的一q,当时q不能理解,现在l于明白了)Q推了很短的距离车子发动v来了Q我们终于可以l前行了Q到了城中心Q雾气小多了Q但是我q要l箋转R到城外去Q?IMG height=19 src="http://www.aygfsteel.com/Emoticons/confused_smile.gif" width=19 border=0>Q已l要q到了,可是我{车还要行?0分钟Q看来今?0Ҏ可以赶到公司了.
下一Rl箋遇到同样的状况,车坏Q大雾,怎么一到城外雾气就q么大呢Q下ơ的时候我q需要穿q一条马路,可是雾气大到Q我Ҏq不到寚w的红l灯Q马路上的R子飞快的行驶Q我伤心啊~
今天Q大雾+车坏Q迟刎ͼ
]]>
public class GetCh2Spell {
public static int compare(String str1, String str2) {
int result = 0;
String m_s1 = null;
String m_s2 = null;
try {
m_s1 = new String(str1.getBytes(_FromEncode_), _ToEncode_);
m_s2 = new String(str2.getBytes(_FromEncode_), _ToEncode_);
}
catch (Exception e) {
return str1.compareTo(str2);
}
result = chineseCompareTo(m_s1, m_s2);
return result;
}
public static int getCharCode(String s) {
if (s == null && s.equals("")) {
return -1;
}
byte b[] = s.getBytes();
int value = 0;
for (int i = 0; i < b.length && i <= 2; i++) {
value = value * 100 + b[i];
}
return value;
}
public static int chineseCompareTo(String s1, String s2) {
int len1 = s1.length();
int len2 = s2.length();
int n = Math.min(len1, len2);
for (int i = 0; i < n; i++) {
int s1_code = getCharCode(s1.charAt(i) + "");
int s2_code = getCharCode(s2.charAt(i) + "");
if (s1_code * s2_code < 0) {
return Math.min(s1_code, s2_code);
}
if (s1_code != s2_code) {
return s1_code - s2_code;
}
}
return len1 - len2;
}
public static String getBeginCharacter(String res) {
String a = res;
String result = "";
for (int i = 0; i < a.length(); i++) {
String current = a.substring(i, i + 1);
if (compare(current, "\u554A") < 0) {
result = result + current;
}
else
if (compare(current, "\u554A") >= 0 &&
compare(current, "\u5EA7") <= 0) {
if (compare(current, "\u531D") >= 0) {
result = result + "z";
}
else
if (compare(current, "\u538B") >= 0) {
result = result + "y";
}
else
if (compare(current, "\u6614") >= 0) {
result = result + "x";
}
else
if (compare(current, "\u6316") >= 0) {
result = result + "w";
}
else
if (compare(current, "\u584C") >= 0) {
result = result + "t";
}
else
if (compare(current, "\u6492") >= 0) {
result = result + "s";
}
else
if (compare(current, "\u7136") >= 0) {
result = result + "r";
}
else
if (compare(current, "\u671F") >= 0) {
result = result + "q";
}
else
if (compare(current, "\u556A") >= 0) {
result = result + "p";
}
else
if (compare(current, "\u54E6") >= 0) {
result = result + "o";
}
else
if (compare(current, "\u62FF") >= 0) {
result = result + "n";
}
else
if (compare(current, "\u5988") >= 0) {
result = result + "m";
}
else
if (compare(current, "\u5783") >= 0) {
result = result + "l";
}
else
if (compare(current, "\u5580") >= 0) {
result = result + "k";
}
else
if (compare(current, "\u51FB") > 0) {
result = result + "j";
}
else
if (compare(current, "\u54C8") >= 0) {
result = result + "h";
}
else
if (compare(current, "\u5676") >= 0) {
result = result + "g";
}
else
if (compare(current, "\u53D1") >= 0) {
result = result + "f";
}
else
if (compare(current, "\u86FE") >= 0) {
result = result + "e";
}
else
if (compare(current, "\u642D") >= 0) {
result = result + "d";
}
else
if (compare(current, "\u64E6") >= 0) {
result = result + "c";
}
else
if (compare(current, "\u82AD") >= 0) {
result = result + "b";
}
else
if (compare(current, "\u554A") >= 0) {
result = result + "a";
}
}
}
return result;
}
public static String getFirstStr(String str) {
String temp = "";
for (int i = 0; i < str.length(); i++) {
String sss = "";
char a = str.charAt(i);
char aa[] = {
a
};
sss = new String(aa);
if (Character.isDigit(aa[0])) {
sss = "data";
}
else
if (a >= 'a' && a <= 'z' || a >= 'A' && a <= 'Z') {
sss = "character";
}
else {
sss = getBeginCharacter(sss);
}
temp = temp + sss;
}
return temp;
}
private static String _FromEncode_ = "GBK";
private static String _ToEncode_ = "GBK";
}
目中的一个类