Oracle 下的开发日积月累
所属分类:
数据库 / oracle
阅读数:
128
收藏 0赞 0分享
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){}
45个非常有用的 Oracle 查询语句小结
这里我们介绍的是 40+ 个非常有用的 Oracle 查询语句,主要涵盖了日期操作,获取服务器信息,获取执行状态,计算数据库大小等等方面的查询。这些是所有 Oracle 开发者都必备的技能,所以快快收藏吧
收藏 0赞 0分享
oracle 数据库隔离级别学习
这篇文章主要介绍了oracle数据库的隔离级别相关的知识,数据库操作的隔离级别,有需要的朋友可以参考下
收藏 0赞 0分享
查看更多