Oracle 下的开发日积月累
Oracle SQL语句中的Update可以和SEQUENCE联合使用,以达到更新某字段的值连续编号,而不需要使用游标去逐条遍历更新数据库记录。例如 update sample set id = seq_id.nextval;Oracle中的select语句允许使用case语句。例如:select col1,case when col1 > 1 then 'exist' else 'no' end col2 from tab;
PROC编程中将PROC源文件编译成PROC文件语句(其中参数可选): proc iname=file.cpp oname=file.cxx threads=yes;
//proc 文件转化 
proc iname=file.cpp oname=file.cxx threads=yes 
//proc lib库文件 
clntsh 
//oracle lib path 
/home/oracle/u01/app/oracle/product/10.1.0/db_1/lib 
//gdb前执行语句 
ulimit -c unlimited 
//gdb实例 
gdb test core.9959 
C++编码中的类型使用和转换: 
const string& iv_value 
const char *lv_value 
lv_value = iv_value.c_str() 
const string& iv_value 
char *lv_value 
lv_value = (char*)iv_value.c_str() 
判断string类变量为空 
string ls_value 
if (true == ls_value.empty()){} 
判断指针为空 
char *lc_value 
if(NULL == lc_value){}