懒惰
懒惰是很奇怪的东西,它使你以为那是安逸,是休息,是福气;但实际上它所给你的是无聊,是倦怠,是消沉;它剥夺你对前途的希望,割断你和别人之间的友情,使你心胸日渐狭窄,对人生也越来越怀疑!—— 罗兰
ocp047的一道题
114. Which statements are true? (Choose all that apply.)A. The data dictionary is created and maintained by the databaseadministrator.B. The data dictionary views can consist of joins of dictionary base tablesand user defined tables.C. The usernames of all the users including t...
11月6号
没有一点儿疯狂,生活就不值得过。听凭内心的呼声的引导吧,为什么要把我们的每一个行动像一块饼似的在理智的煎锅上翻来覆去地煎呢? ——米兰·昆德拉《不朽》
to_yminterval函数的使用
to_yminterval(X)将字符串X转换为一个interval year to month 类型。原因:运算后结果出现这个日期'1981-2-29' 运算之后出现非闰年的2月29所以报错此问题还可以用add_months('',number)函数来代替;他的处理结果是把非闰年的2月29强制转换为2月28...
ocp中一道简单的递归
<p><span style="font-size:16px;">112. View the Exhibit and examine thedetails of the EMPLOYEES table.</span> </p><p><span style="font-size:16px;">Evaluate the following SQL statements:</span> </p><p><span style="font-size:16px;">Statement 1:</span> </p><p><span style="font-size:16px;...
MERGE
<span style="font-size:18px;">这是关于047中的一道MERGE的习题:</span><br /><span style="font-size:18px;"></span><p><span style="font-size:18px;">79. View theExhibit and examine the data in ORDERS_MASTER and</span></p><p><span style="font-size:18px;">MONTHLY_ORDERS tables.</span></p><p>...
The listener supports no services解决一例
<p>今天做Advacned Replication实验的时候碰到一个问题,启动目标库监听时,出现 <span style="color:#ff0000;">The listener supports no services</span> </p>[oracle@adrep ~]$ <span style="color:#ff0000;">lsnrctl start</span> <br />LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 14-SEP-2013 10:11...
linux安装中一些问题
<span style="font-size:18px;">在安装完redhat后图形界面登陆不了(root用户)<br />Linux 启动后按"E",然后选中Kernel那一行,再按"E"进入编辑模式:<br /><br />kernel /boot/vmlinuz-2.4.21-27.EL ro root=LABEL=/ 注意这有空格,然后root=LABAEL=/ 1;<br />结束编辑按"Enter"回车返回。<span style="font-size:14p...
卸载ORACLE11GR2
ORACLE11gR2在windows7下的卸载
to_yminterval函数的使用
to_yminterval(X)将字符串X转换为一个interval year to month 类型。原因:运算后结果出现这个日期'1981-2-29' 运算之后出现非闰年的2月29所以报错此问题还可以用add_months('',number)函数来代替;他的处理结果是把非闰年的2月29强制转换为2月28...
父表与子表
简单的讲:当两个表建立一对多关系的时候,"一"的那一端是父表,"多"的那一端是子表.父表设置一个主键子表设置一个外键外键与主键相关联 B表引用A表的字段作为外键,那么A表是主表,B表是从表。就像A是B的父亲一样,儿子可以继承父亲的遗产,可以将父亲的东西拿来自己用。用继承的思想想这个问题就会比较明了。简单的...
正则表达式之regexp_replace
> 21. View the Exhibit and examine the details of the EMPLOYEES table.Evaluate the following SQL statement:SELECT phone_number,REGEXP_REPLACE(phone_number,'([[:digit:]]{3})\.([[:digit:]]{3})\.([[:digit:]]{4})', '(\1) \2?\3')"PHONE NUMBER"FROM employees?The query was written to format the PHO...
code
最近,我大量阅读了Steve Yegge的文章。其中有一篇叫“Practicing Programming”(练习编程),写成于2005年,读后令我惊讶不已:与你所相信的恰恰相反,单纯地每天埋头于工作并不能算是真正意义上的锻炼——参加会议并不能锻炼你的人际交往能力;回复邮件并不能提高你的打字水平。你必须定期留出时间,集中锻...
decode函数
decode(条件,值1,返回值1,值2,返回值2,...值n,返回值n,缺省值)该函数的含义如下:IF 条件=值1 THEN RETURN(翻译值1)ELSIF 条件=值2 THEN RETURN(翻译值2) ......ELSIF 条件=值n THEN RETURN(翻译值n)ELSE RETURN(缺省值)END IFdecode(字段或字段的运算,值1,值2,值3...
oracle连接
//关于oracle的连接:1:sql developer连接 新建连接--> 连接名:10.128.100.9 用户名:××××× 密码:×××××测试连接成功////sqlplussql>conn 用户名/密码@连接名:1521/orcl &n...
在cmd里面目录是C:\Users\Administrator>输入ipconfig不起作用
你先复制下面的命令到cmd窗口然后再敲ipconfig试试path = %path%;c:\windows\system32\如果命令可以正常运行了的话那就是你电脑"环境变量"设置错误引起的,解决方法如下:回到电脑桌面鼠标右键点击“计算机”--”属性“---“高级”---“环境变量”在下面“系统变量”里找到path点...
“SP2-0618:无法找到会话标识符。启用检查PLUSTRACE角色”解决方案
此文在红黑联盟搜索到的,希望对大家有帮助。SQLplus测试可用,sqldeveloper还未测试.
OCP—051试题
1Z0-0511. View the Exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS, and TIMES tables. The PROD_ID column is the foreign key in the SALES table, which references the PRODUCTS table. Similarly, the CUST_ID and TIME_ID columns are also foreign keys in the SALES table referencing t...
Oracle 产生序列的 6 种方法
方法一: sys@ORCL> select level from dual connect by level<=5; LEVEL ---------- 1 2 3 4 5 方法二: sys@ORCL> select rownum from dba_objects where rownum<=5; ROWNUM ---------- 1 2 3 4 5 方法三: sys@ORCL> select to_number(column_value) n from xmltable(\'1 to 5\'); N ---------- 1 2 3 4 5 方法四: s
Oracle时间操作大全
在系统时间基础上延迟5秒sysdate+(5/24/60/60) 在系统时间基础上延迟5分钟sysdate+5/24/60 在系统时间基础上延迟5小时sysdate+5/24 在系统时间基础上延迟5天 sysdate+5 在系统时间基础上延迟5月 add_months(sysdate,-5) 在系统时间基础上延迟5年 add_months(sysdate,-5*12) [@more@] 上月末的日期: select last_day(add_months(sysdate, -1)) from dual; 本月的最后一秒: select trunc(add_months(sysdate,1),'MM') - 1/24/60/60 from dual 本周星期一的日期: select trunc(sysdate,'day')+1 from du