持续完善 Pinda.cn 秒建营销活动 通过低代码 零代码的模式快速创建营销活动,欢迎使用 。

文章分类 -  Oracle

摘要:创建表的语句中,最后总来一句on[primary],这是什么意思?翻翻联机丛书。在CREATE TABLE的语法下似乎没有找到。硬着头皮看下去,终于明白了一些。写出来吧。侯捷老师说,发表是最好的记忆。:)在CREATE TABLE的语法中有这样一句可选语法项目:[ ON { filegroup | DEFAULT } ] 用来指定存储表的文件组。如果指定 filegroup,则表将存储在指定的文件... 阅读全文
posted @ 2006-10-12 19:35 工具人Kim哥 阅读(339) 评论(1) 推荐(0) 编辑
摘要:Oracle/PLSQL: Substr Function In Oracle/PLSQL, the substr functions allows you to extract a substring from a string. The syntax for the substr function is: substr( string, start_position, [ length ... 阅读全文
posted @ 2006-06-17 17:07 工具人Kim哥 阅读(836) 评论(0) 推荐(0) 编辑
摘要:Oracle/PLSQL: To_Char Function In Oracle/PLSQL, the to_char function converts a number or date to a string. The syntax for the to_char function is: to_char( value, [ format_mask ], [ nls_language ]... 阅读全文
posted @ 2006-06-17 17:05 工具人Kim哥 阅读(858) 评论(0) 推荐(0) 编辑
摘要:Oracle/PLSQL: NVL Function In Oracle/PLSQL, the NVL function lets you substitute a value when a null value is encountered. The syntax for the NVL function is: NVL( string1, replace_with ) string1 ... 阅读全文
posted @ 2006-06-17 17:05 工具人Kim哥 阅读(1267) 评论(1) 推荐(0) 编辑
摘要:Oracle/PLSQL: Decode Function In Oracle/PLSQL, the decode function has the functionality of an IF-THEN-ELSE statement. The syntax for the decode function is: decode( expression , search , result [,... 阅读全文
posted @ 2006-06-17 17:04 工具人Kim哥 阅读(686) 评论(0) 推荐(0) 编辑
摘要:Oracle/PLSQL: Grant/Revoke Privileges Grant Privileges on Tables You can grant users various privileges to tables. These privileges can be any combination of select, insert, update, delete, reference... 阅读全文
posted @ 2006-06-17 17:02 工具人Kim哥 阅读(797) 评论(0) 推荐(0) 编辑
摘要:Oracle/PLSQL: Sequences (Autonumber) In Oracle, you can create an autonumber field by using sequences. A sequence is an object in Oracle that is used to generate a number sequence. This can be useful... 阅读全文
posted @ 2006-06-17 17:02 工具人Kim哥 阅读(433) 评论(0) 推荐(0) 编辑
摘要:Oracle/PLSQL: Oracle System Tables Below is an alphabetical listing of the Oracle system tables that are commonly used. System Table Description ... 阅读全文
posted @ 2006-06-17 16:58 工具人Kim哥 阅读(354) 评论(0) 推荐(0) 编辑
摘要:In Oracle/PLSQL, the numtodsinterval function converts a number to an INTERVAL DAY TO SECOND literal. The syntax for the numtodsinterval function is: numtodsinterval( number, expression ) number is... 阅读全文
posted @ 2006-06-17 16:57 工具人Kim哥 阅读(564) 评论(0) 推荐(0) 编辑
摘要:1.TRUNC(for dates)TRUNC函数为指定元素而截去的日期值。其具体的语法格式如下:TRUNC(date[,fmt])其中:date 一个日期值fmt 日期格式,该日期将由指定的元素格式所截去。忽略它则由最近的日期截去下面是该函数的使用情况:TRUNC(TO_DATE(’24-Nov-1999 08:00 pm’,’dd-mon-yyyy hh:mi am’))=’24-Nov-19... 阅读全文
posted @ 2006-06-17 15:10 工具人Kim哥 阅读(790) 评论(1) 推荐(0) 编辑
摘要:PL/SQL单行函数和组函数详解 函数是一种有零个或多个参数并且有一个返回值的程序。在SQL中Oracle内建了一系列函数,这些函数都可被称为SQL或PL/SQL语句,函数主要分为两大类: 单行函数 组函数 本文将讨论如何利用单行函数以及使用规则。 SQL中的单行函数 SQL和PL/SQL中自带很多类型的函数,有字符、数字、日期、转换、和混合型等多种函数用于处理单行数据,因此这些... 阅读全文
posted @ 2006-06-17 14:30 工具人Kim哥 阅读(436) 评论(0) 推荐(0) 编辑
摘要:在oracle中有很多关于日期的函数,如:1、add_months()用于从一个日期值增加或减少一些月份date_value:=add_months(date_value,number_of_months)例:SQL> select add_months(sysdate,12) "Next Year" from dual; Next Year----------13-11月-04 SQL>... 阅读全文
posted @ 2006-06-17 14:29 工具人Kim哥 阅读(68184) 评论(6) 推荐(1) 编辑

持续完善 Pinda.cn 秒建营销活动 通过低代码 零代码的模式快速创建营销活动,欢迎使用 。