Decode is translated as decoding or decoding, because it can translate the query results into content that is easy for the user to understand.Grammar:Expr: An expressionSearch: Searching for valuesResult: Results valueDefault: DefaultsThe first
--1. Group functions--count (): Number of bars used to count records if there is no record, return 0The--count function can be calculated based on one or more columns, without the function of a row weight--How many records are there in the
Different versions of the database direct this function return type inconsistency causes a program mapping error:1. Error message:cause:java.sql.sqlsyntaxerrorexception:ora-01790: An expression must have the same data type as the corresponding
Function call Restrictions1, the SQL statement can only call the storage function (server side), and cannot call the client's function2, SQL can only call with input parameters, not with output, input and output functions3. SQL cannot use the
1. Oracle 's replace function and translate functionThe Replace function is substituted at the string level, corresponding to the string one by one substitutionSql> SELECT REPLACE ('accd','cd','EF ' from dual; REPLACE ('ACCD','CD',' EF')-----------
The colleague received a task yesterday to use PHP to process the contents of the Oracle database, but the PHP open Oracle extension is not as straightforward as MySQL, and requires something to open.The first step is to download an install client
Oracle function gets Chinese Pinyin first letter
/*------Increase: yl--*/
Use of Nlssort functions in Oracle
Nlssort (), used for language sorting
Pinyin
SELECT * from Team orders by Nlssort (sort field name, ' Nls_sort = Schinese_pinyin_m
oracle| function
Pl/sql single-line functions and Group functions
A function is a program that has 0 or more parameters and has a return value. In SQL, Oracle builds a series of functions that can be called SQL or PL/SQL statements, and functions
One: Case control functionLower () function: (This function will change all uppercase letters to lowercase letters)
Upper () function: (converts the input string into uppercase letters)
Initcap () Function: (Capitalize the first letter
Function 1, numeric function (1) ceil (n)Returns the smallest integer greater than or equal to n(2) Power (m,n)Returns the n-th side of M(3) Trunc (M[,n])For the M intercept operation, when n is greater than 0 o'clock, the nth bit is intercepted to
When a migration project is encountered, the MySQL InStr function can only find if the substring is in the parent string and cannot be found as many times as it appears.Here I wrote one myself in order to migrate. Of course, I'm only here for
A function was created in Oracle that originally wanted to return an index table without success. Think of text can also transfer information, suddenly came to the inspiration, the return value to set the text format.
Given that the amount of return
String functions, mathematical functions, date functions, logical operation functions, and other functions
String functions, mathematical functions, date functions, logical operation functions, and other functions
Single-record functions in SQL
1
Oracle Database: the DECODE function compares the value with a series of sequence dolls to determine the final returned results. The ordinal even is in pairs.
Oracle Database: the DECODE function compares the value with a series of sequence dolls to
Keywords: nlssort, Pinyin sorting, strokes, radical
Before Oracle9i, Chinese characters were sorted by binary encoding.
The sorting by pinyin, radical, and stroke function is added to oracle9i. Set the NLS_SORT Value
1. SCHINESE_RADICAL_M is
Create or replace function gettaxcycle (www.2cto.com vv02 IN vv02_accounts_tin % ROWTYPE, returnoption in number) return number as tr12rec %% ROWTYPE; tg05rec %% ROWTYPE; taxcycle NUMBER; begin select * INTO tg05rec FROM tg05_tax_type_details WHERE
The colleague received a task yesterday to use PHP to process the contents of the Oracle database, but the PHP open Oracle extension is not as straightforward as MySQL, and requires something to open.
The first step is to download an install client
1. Oracle single-line function 1.1Oracle character function LOWER makes the string LOWER case; selectLOWER (#39; HeLp #39;) fromdual --- gt; helpUPPER makes the string large
1. Oracle single-line function 1.1 Oracle character function LOWER makes
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.