Oracle built-in functions

1. Length and lengthb Both of the above functions are used to obtain the length of the string, but the returned results may be different. The length units returned by lengthb are bytes rather than characters. Length indicates the number of

Oracle-Function)

Format: (not in package) Create or replace function function_name (argu1 [mode1] datatype1, argu2 [mode2] datatype2,...) return datatype isResult varchar2 (50 );BeginReturn result; end; Call: VaR V1 varchar2 (100) Exec: V1: = function_name;

Authid CURRENT_USER of Oracle

Without authid CURRENT_USER, The definer permission (definer rights) is executed as the definer identity; If authid CURRENT_USER is added, the caller permission (invoker rights) is executed as the caller.   Example:   1. Create two users: xxpo and

Oracle user-defined functions

Oracle Function Format:Create or replace function user-defined function name [(parameter)]Return Value TypeIsReturn Value TypeBeginOperationEnd; Test:Input empno to obtain the user name,CREATE OR REPLACEFUNCTION FUN_SEL (aa emp. EMPNO % TYPE)

Oracle SQL Basics

1. nvl ('A', 'B') if A is null, B is displayed. 2. DECODE (value, if1, then1, if2, then2, if3, then3,... else) 3. grouping function usage, with a parameter. The parameter is the field name. If the result is obtained from this field, 1 is returned.

Oracle External table import time date type data

1. Create an External table directory Create directory extdir as 'e: appextdir '; 2. Define External tables Create table ext_test ( Rt date, Rtype char (1) ) Organization external ( Type oracle_loader Default directory extdir Access parameters

Total Pages: 2147 1 .... 2143 2144 2145 2146 2147 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.