随笔分类 -  sql

摘要:SQL 教程http://www.w3school.com.cn/sql/ 阅读全文
posted @ 2015-12-11 14:50 oucaijun 阅读(153) 评论(0) 推荐(0) 编辑
摘要:Use putty tunnel instead of login terminal server有时候本地直接ping不通sql 的server, 但另一个server能连上,这时就可以把端口和ip重定位一下, 通过另一个server转接.in putty ssh settings: 12345... 阅读全文
posted @ 2015-12-08 18:06 oucaijun 阅读(317) 评论(0) 推荐(0) 编辑
摘要:sql server提供了update的from 子句,可以将要更新的表与其它的数据源连接起来。虽然只能对一个表进行更新,但是通过将要更新的表与其它的数据源连接起来,就可以在update的表达式 中引用要更新的表以外的其它数据.实际更新的操作是在要更新的表上进行的,而不是在from子句所形成的新的结... 阅读全文
posted @ 2015-11-27 11:02 oucaijun 阅读(1348) 评论(0) 推荐(0) 编辑
摘要:快速查询数据库中拥有那些表项:(类似linux中的ls, ls |grep table_name*)select * from tab where tname like 'YOUR_QERYNAME%%';TNAME TABTYPE CLUSTERID--------------... 阅读全文
posted @ 2015-11-27 10:32 oucaijun 阅读(150) 评论(0) 推荐(0) 编辑
摘要:1.sybase与oracle中insert into select和select into的用法http://wjlvivid.iteye.com/blog/1921679Sybase一、首先,我们来看一下insert into select语句 其语法形式为:Insert into Table... 阅读全文
posted @ 2015-11-24 17:23 oucaijun 阅读(2650) 评论(0) 推荐(1) 编辑
摘要:1.sybase 和 oracle 比较http://blog.itpub.net/14067/viewspace-1030014/Oracle采用多线索多进程体系结构Sybase采用单进程多线索体系结构Oracle和Sybase都采用多线索。采用多线索的模式,能用较少的线索管理大量的用户进程;并且... 阅读全文
posted @ 2015-11-24 17:09 oucaijun 阅读(2130) 评论(0) 推荐(0) 编辑
摘要:CursorsYou use a cursor to fetch rows returned by a query. You retrieve the rows into the cursor using aquery and then fetch the rows one at a time ... 阅读全文
posted @ 2015-11-24 16:56 oucaijun 阅读(271) 评论(0) 推荐(0) 编辑
摘要:在sql developer中登陆某数据库,在procedure里面加入一个proc,种类选ARBOR:CREATE OR REPLACE PROCEDURE PROCEDURE23IS NAM VARCHAR2(100);BEGIN DBMS_OUTPUT.PUT_LINE('NAME:'||... 阅读全文
posted @ 2015-11-24 16:24 oucaijun 阅读(244) 评论(0) 推荐(0) 编辑
摘要:FROM >dual is a table that contains a single row. The following outputfrom the DESCRIBE command shows the structure of the dual table, along with a qu... 阅读全文
posted @ 2015-11-24 13:44 oucaijun 阅读(401) 评论(0) 推荐(0) 编辑
摘要:1.oracle for update和for update nowait的区别http://www.cnblogs.com/quanweiru/archive/2012/11/09/2762223.html首先一点,如果只是select的话,Oracle是不会加任何锁的,也就是Oracle对sel... 阅读全文
posted @ 2015-11-24 13:04 oucaijun 阅读(438) 评论(0) 推荐(0) 编辑
摘要:A PL/SQL block has the following structure:[DECLAREdeclaration_statements]BEGINexecutable_statements[EXCEPTIONexception_handling_statements]END;/ []中... 阅读全文
posted @ 2015-11-24 11:22 oucaijun 阅读(128) 评论(0) 推荐(0) 编辑
摘要:1.ORACLE查询数据中所存在的表http://www.cnblogs.com/juddhu/archive/2012/03/22/2411406.html 查询数据库中所有的表: select * from all_tables; 查询当前DBA用户所能看到的表: select * fr... 阅读全文
posted @ 2015-11-19 11:13 oucaijun 阅读(146) 评论(0) 推荐(0) 编辑
摘要:登陆: sqlplus user/passwd@SID 阅读全文
posted @ 2015-11-16 10:13 oucaijun 阅读(350) 评论(0) 推荐(0) 编辑

下载TeamViewer完整版 下载TeamViewer
点击右上角即可分享
微信分享提示