<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ycg01的专栏]]></title><description><![CDATA[coding is my best love]]></description><link>https://blog.csdn.net/onlysql</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; onlysql]]></copyright><item><title><![CDATA[表操作]]></title><link>https://blog.csdn.net/onlysql/article/details/880218</link><guid>https://blog.csdn.net/onlysql/article/details/880218</guid><author>onlysql</author><pubDate>Wed, 05 Jul 2006 14:26:00 +0800</pubDate><description><![CDATA[alter  table T_STATIS_USER_VISITOR add  USER_COUNT number(16) ]]></description><category></category></item><item><title><![CDATA[本日学习]]></title><link>https://blog.csdn.net/onlysql/article/details/806540</link><guid>https://blog.csdn.net/onlysql/article/details/806540</guid><author>onlysql</author><pubDate>Sat, 17 Jun 2006 11:53:00 +0800</pubDate><description><![CDATA[学习是方法的问题，也是积累的过程。Instr FunctionIn Oracle/PLSQL, the instr function returns the location of a substring in a string.The syntax for the instr Oracle function is:instr( string1, string2, [ star]]></description><category></category></item><item><title><![CDATA[本日学习]]></title><link>https://blog.csdn.net/onlysql/article/details/806538</link><guid>https://blog.csdn.net/onlysql/article/details/806538</guid><author>onlysql</author><pubDate>Sat, 17 Jun 2006 11:53:00 +0800</pubDate><description><![CDATA[学习是方法的问题，也是积累的过程。Instr FunctionIn Oracle/PLSQL, the instr function returns the location of a substring in a string.The syntax for the instr Oracle function is:instr( string1, string2, [ star]]></description><category></category></item><item><title><![CDATA[Instr Function]]></title><link>https://blog.csdn.net/onlysql/article/details/806537</link><guid>https://blog.csdn.net/onlysql/article/details/806537</guid><author>onlysql</author><pubDate>Sat, 17 Jun 2006 11:53:00 +0800</pubDate><description><![CDATA[学习是方法的问题，也是积累的过程。Instr FunctionIn Oracle/PLSQL, the instr function returns the location of a substring in a string.The syntax for the instr Oracle function is:instr( string1, string2, [ star]]></description><category></category></item><item><title><![CDATA[ORACLE之常用FAQ [转]]]></title><link>https://blog.csdn.net/onlysql/article/details/795313</link><guid>https://blog.csdn.net/onlysql/article/details/795313</guid><author>onlysql</author><pubDate>Tue, 13 Jun 2006 18:19:00 +0800</pubDate><description><![CDATA[第一部分、SQL&PL/SQL [Q]怎么样查询特殊字符，如通配符%与_ [A]select * from table where name like A/_% escape / [Q]如何插入单引号到数据库表中 [A]可以用ASCII码处理，其它特殊字符如&也一样，如 insert into t values(i||chr(39)||m); -- chr(39)代表字符 或者用]]></description><category></category></item><item><title><![CDATA[数据库中主键的选择和使用 ]]></title><link>https://blog.csdn.net/onlysql/article/details/647436</link><guid>https://blog.csdn.net/onlysql/article/details/647436</guid><author>onlysql</author><pubDate>Sat, 01 Apr 2006 22:45:00 +0800</pubDate><description><![CDATA[主键的选择：1.有意义的键和无意义的键：   有意义的键：例如身份证号。键值是唯一的，而由人来指定是不可靠的，有可能会出现重复，虽然数据库可以检测出来，但是在数据进入系统之前不会被发现。所以有意义的键是不可靠的。   无意义的键：本质是数据库构造的并不打算供人使用的一个随即数。对应小系统或稳定的情况，应优先考虑。2.简单键和组合键：  组合键：在一个表和另一个表上下文相关时更易于使用。比如：订]]></description><category></category></item><item><title><![CDATA[Oracle中正确利用Rownum来限制查询所返回的行数]]></title><link>https://blog.csdn.net/onlysql/article/details/647434</link><guid>https://blog.csdn.net/onlysql/article/details/647434</guid><author>onlysql</author><pubDate>Sat, 01 Apr 2006 22:43:00 +0800</pubDate><description><![CDATA[含义解释： 1、rownum是oracle系统顺序分配为从查询返回的行的编号，返回的第一行分配的是1，第二行是2，　 依此类推，这个伪字段可以用于限制查询返回的总行数。2、rownum不能以任何基表的名称作为前缀。 使用方法： 现有一个商品销售表sale，表结构为：month　　　 char(6)　　　　　 --月份sell　　　　number(10,2)　　　--月销售金额create ta]]></description><category></category></item><item><title><![CDATA[SQLServer和Oracle常用函数对比 ]]></title><link>https://blog.csdn.net/onlysql/article/details/647433</link><guid>https://blog.csdn.net/onlysql/article/details/647433</guid><author>onlysql</author><pubDate>Sat, 01 Apr 2006 22:43:00 +0800</pubDate><description><![CDATA[数学函数　　1.绝对值 　　S:select abs(-1) value 　　O:select abs(-1) value from dual 　　2.取整(大) 　　S:select ceiling(-1.001) value 　　O:select ceil(-1.001) value from dual 　　3.取整（小） 　　S:select floor(-1.001) valu]]></description><category></category></item><item><title><![CDATA[关于动态SQL的使用]]></title><link>https://blog.csdn.net/onlysql/article/details/647432</link><guid>https://blog.csdn.net/onlysql/article/details/647432</guid><author>onlysql</author><pubDate>Sat, 01 Apr 2006 22:42:00 +0800</pubDate><description><![CDATA[内容摘要：在PL/SQL开发过程中，使用SQL，PL/SQL可以实现大部份的需求，但是在某些特殊的情况下，在PL/SQL中使用标准的SQL语句或DML语句不能实现自己的需求，比如需要动态建表或某个不确定的操作需要动态执行。这就需要使用动态SQL来实现。本文通过几个实例来详细的讲解动态SQL的使用。　　本文适宜读者范围：Oracle初级，中级系统环境：　　    OS：windows 2]]></description><category></category></item><item><title><![CDATA[Oracle数据库游标使用大全]]></title><link>https://blog.csdn.net/onlysql/article/details/647428</link><guid>https://blog.csdn.net/onlysql/article/details/647428</guid><author>onlysql</author><pubDate>Sat, 01 Apr 2006 22:38:00 +0800</pubDate><description><![CDATA[Oracle数据库游标使用大全SQL是用于访问ORACLE数据库的语言，PL/SQL扩展和加强了SQL的功能，它同时引入了更强的程序逻辑。 PL/SQL支持DML命令和SQL的事务控制语句。DDL在PL/SQL中不被支持，这就意味作在PL/SQL程序块中不能创建表或其他任何对象。较好的PL/SQL程序设计是在PL/SQL块中使用象DBMS_SQL这样的内建包或执行EXECUTE IMMED]]></description><category></category></item><item><title><![CDATA[Oracle学习]]></title><link>https://blog.csdn.net/onlysql/article/details/647426</link><guid>https://blog.csdn.net/onlysql/article/details/647426</guid><author>onlysql</author><pubDate>Sat, 01 Apr 2006 22:36:00 +0800</pubDate><description><![CDATA[1、case表达式 select country_name,region_id, case region_id when 1 then europe when 2 then america when 3 then asia else other end continent from countries where country_name like I%; 在9i中提供的cas]]></description><category></category></item><item><title><![CDATA[MySql命令 ]]></title><link>https://blog.csdn.net/onlysql/article/details/647365</link><guid>https://blog.csdn.net/onlysql/article/details/647365</guid><author>onlysql</author><pubDate>Sat, 01 Apr 2006 21:47:00 +0800</pubDate><description><![CDATA[use  [LIKE wild];show tables;show databases;?/help;exit/quit;mysqladmin version;mysql mysqladmin version;net start mysql;mysqladmin variables;mysqladmin -h hostname --port=port_number variables;缺省的情]]></description><category></category></item><item><title><![CDATA[Oracle常用Script ]]></title><link>https://blog.csdn.net/onlysql/article/details/645178</link><guid>https://blog.csdn.net/onlysql/article/details/645178</guid><author>onlysql</author><pubDate>Fri, 31 Mar 2006 00:29:00 +0800</pubDate><description><![CDATA[1、查看当前所有对象 SQL> select * from tab; 2、建一个和a表结构一样的空表 SQL> create table b as select * from a where 1=2; SQL> create table b(b1,b2,b3) as select a1,a2,a3 from a where 1=2; 3、察看数据库的大小，和空间使用情况 ]]></description><category></category></item><item><title><![CDATA[Oracle 常用技巧和脚本]]></title><link>https://blog.csdn.net/onlysql/article/details/645177</link><guid>https://blog.csdn.net/onlysql/article/details/645177</guid><author>onlysql</author><pubDate>Fri, 31 Mar 2006 00:27:00 +0800</pubDate><description><![CDATA[1. 如何查看ORACLE的隐含参数？ ORACLE的显式参数，除了在INIT.ORA文件中定义的外，在svrmgrl中用"show parameter *"，可以显示。但ORACLE还有一些参数是以“_”，开头的。如我们非常熟悉的“_offline_rollback_segments”等。 这些参数可在sys.x$ksppi表中查出。 语句：“select ksppinm from x$kspp]]></description><category></category></item><item><title><![CDATA[利用Oracle的Job Queue实现定时操作]]></title><link>https://blog.csdn.net/onlysql/article/details/645175</link><guid>https://blog.csdn.net/onlysql/article/details/645175</guid><author>onlysql</author><pubDate>Fri, 31 Mar 2006 00:25:00 +0800</pubDate><description><![CDATA[1、确保Oracle的工作模式允许启动队列管理器(SNP进程) SVRMGRL> Alter System Enable Restricted Session; 或 SQL> Alter System Disenable Restricted Session; 2、确保Oracle已配置任务队列管理器的启动参数 initSID.ora中： job_queue_process=n(0);(0-3]]></description><category></category></item><item><title><![CDATA[ORACLE中日期和时间函数汇总 ]]></title><link>https://blog.csdn.net/onlysql/article/details/645174</link><guid>https://blog.csdn.net/onlysql/article/details/645174</guid><author>onlysql</author><pubDate>Fri, 31 Mar 2006 00:23:00 +0800</pubDate><description><![CDATA[在oracle中处理日期大全   TO_DATE格式  Day:  dd number 12  dy abbreviated fri  day spelled out friday  ddspth spelled out, ordinal twelfth  Month:  mm number 03  mon abbreviated mar  month spelled out march  Yea]]></description><category></category></item><item><title><![CDATA[基本的sql]]></title><link>https://blog.csdn.net/onlysql/article/details/642253</link><guid>https://blog.csdn.net/onlysql/article/details/642253</guid><author>onlysql</author><pubDate>Tue, 28 Mar 2006 23:10:00 +0800</pubDate><description><![CDATA[alter table jeseechen_testadd  ( fmoney number(10) default 5 )alter table jeseechen_testadd constraint k primary key(fqq_num)checkunique 是非null字段唯一外键 就是非null值必须在父表中存在同样的值,否则就会出错. ]]></description><category></category></item><item><title><![CDATA[Oracle数据类型2]]></title><link>https://blog.csdn.net/onlysql/article/details/642053</link><guid>https://blog.csdn.net/onlysql/article/details/642053</guid><author>onlysql</author><pubDate>Tue, 28 Mar 2006 20:18:00 +0800</pubDate><description><![CDATA[在ORACLE8中定义了：标量(Scalar)、复合(COMPOSITE)、引用(REFERENCE)和LOB四种数据类型， 标量(Scalar) 标量类型与数据库的列所使用的类型相同，此外它还有一些扩展。 它又分为七个组：数字、字符、行、日期、行标识、布尔和可信。 数字, 它有三种基本类型:NUMBER、PLS_INTEGER和BINARY_INTENER。 NUMBER可以描述整数或实数，而P]]></description><category></category></item><item><title><![CDATA[Oracle数据类型 ]]></title><link>https://blog.csdn.net/onlysql/article/details/642051</link><guid>https://blog.csdn.net/onlysql/article/details/642051</guid><author>onlysql</author><pubDate>Tue, 28 Mar 2006 20:17:00 +0800</pubDate><description><![CDATA[CHAR        固定长度字符域，最大长度可达2 000 个字节 NCHAR       多字节字符集的固定长度字符域，长度随字符集而定，最多为2 000个字符或2 000个字节 VARCHAR2    可变长度字符域，最大长度可达4 000 个字符 NVARCHAR2   多字节字符集的可变长度字符域，长度随字符集而定，最多为4 000个字符或4 000个字节 DATE       用于存]]></description><category></category></item><item><title><![CDATA[简单的存储过程之二]]></title><link>https://blog.csdn.net/onlysql/article/details/642043</link><guid>https://blog.csdn.net/onlysql/article/details/642043</guid><author>onlysql</author><pubDate>Tue, 28 Mar 2006 20:11:00 +0800</pubDate><description><![CDATA[存储过程的语法可以类似下面的进行书写CREATE OR REPLACE PROCEDURE FOR_QQ_ANALISE_BY_JESEECHEN(statis_date IN VARCHAR2) --传入参数AS  today           date; --申明的变量  i               number(11);  one_week_before date;BEGI]]></description><category></category></item></channel></rss>