Oracle computing time functions (numtodsinterval, numtoyminterval), oracle computing functions
Numtodsinterval (, X is a number, and c is a string,
Indicates the unit of x. This function converts x to interval day to second. Commonly Used units include ('day', 'hour', 'minu
Oracle _ Common grouping functions and oracle grouping FunctionsZookeeper
Oracle _ Common grouping Functions① Grouping Function1. max (column): calculates the maximum value, which is not required for the data type. Any data type can be used.2. min (column): calculates the mi
Single-record functions in SQL1. ASCIIReturns the decimal number corresponding to the specified character;SQL> select ASCII ('A') A, ASCII ('A') A, ASCII ('0') zero, ASCII ('') space from dual;
A A zero space------------------------------------65 97 48 32
2. CHRReturns the corresponding characters;SQL> select CHR (54740) Zhao, CHR (65) chr65 from dual;
Zh C---Zha
Oracle analysis functions (notes), oracle Functions
Analytics functions are new types of functions introduced by oracle Database in 9i and are continuously enhanced in later versions. T
Single-record functions in SQL1. ASCIIReturns the decimal number corresponding to the specified character;SQL> select ASCII ('A') A, ASCII ('A') A, ASCII ('0') zero, ASCII ('') space from dual;A A zero space------------------------------------65 97 48 32
2. CHRReturns the corresponding characters;SQL> select CHR (54740) Zhao, CHR (65) chr65 from dual;
Zh C---
, returns twice times the wage (2*sal), if it is 30, returns 3 times times the wage, if not, then returns half the wageSelect Ename,deptno,sal,Case DeptnoWhen Ten then 1*salWhen 2*salWhen 3*salelse SAL/2Endfrom EMP;②decode:decode (EXPR1,EXPR2,EXPR3,.........)Eg: Judge Deptno, if it is department 10th, returns one-fold pay (1*sal), or 0 if not.Sql>select Ename,deptno,sal,decode (deptno,10,sal,0) from EMP;Eg: to judge Deptno, if it is Department 10th, return one-fold salary (1*sal), return 30 time
In Oracle, how does one determine whether a string is a number or an oracle string?Method 1: Use the To_Number function to identify exceptions
Create or replace function Is_Number (Str _ VARCHAR2) RETURN VARCHAR2ISNum _ NUMBER;BEGINNum _: = to_number (str _);RETURN 'y ';EXCEPTIONWHEN OTHERS THENRETURN 'n ';END Is_Numbe
into Oracle servers and Oracle tools that can treat PL/SQL as an engine within an Oracle server, and a single SQL statement processor to handle pl/ SQL program block. The SQL statement
Oracle (11) string function, oracle string
I. String Functions
LENGTH (char1, char2)
Select length ('abc def gh') FROM dual; -- get the LENGTH of the string, containing spaces. Result:
The following code has been tested to run directly
Oracle analysis functions, multidimensional functions and model functions are briefly described, mainly for the BI report statistics, not necessarily very comprehensive, but a little explanation of the BI scenario
--Create a Sales Quantity table, the data trend is in
Oracle Functions--common functions
NVL (EXPRESS1,EXPRESS2):
If the first expression is empty, the value of the second expression is displayed; If the first expression is not empty, the value of the first expression is displayed;
NVL2 (EXPRESS1,EXPRESS2,EXPRESS3);
Returns an expression of 3 if the first expression is empty, and returns an expression of 2 if the f
Label:Original: SQL Server function Full solution One: Data type conversion functionWhen you work with values of different data types at the same time, SQL Server typically automatically makes a hermit type conversion. Values that are similar to data types are valid, such as int and float, but for other data types, such as Integer and character types, the Hermit transform cannot be implemented, and the disp
; sqlplus \ nolog
SQL * Plus: Release 9.2.0.1.0-production on Tuesday June 28 11:05:27 2005
Copyright (c) 1982,200 2, Oracle Corporation. All rights reserved.
SQL>ConnUser/password @ orclAs sysdba // user and password are your facial usernames and passwords, such as sys/123456
Error:ORA-12500: TNS: Listeners cannot start dedicated server processes
logged on
-- Options: ENtryid, sessionid, terminal,Language, label, osdba
--(All options not available inAll Oracle versions)
Vsize (expr)-- Returns the number of BYtes used by the expression
-- Useful in SElecting information about tAble Space Requirements
***************************************************************
****************
* SQL date function
, 2002, Oracle Corporation. All rights reserved.sql> Conn user/[email protected] as sysdba//user and password are your needs bark username and password, such as sys/ 123456 error:ora-12500:tns: Listener cannot start private server processSql>exit;Cause: The local database corresponding service is not open, in the service to the Oracleu corresponding service opened(4) connect to the databasee:\>sqlplus/nologSql*plus:release 9.2.0.1.0-production on
Sort common e functions, oracle Functions
Recently I learned about Oracle databases and often encountered Oracle database functions. After careful consideration, I summarized some common Oracl
One: Data type conversion functionWhen you work with values of different data types at the same time, SQL Server typically automatically makes a hermit type conversion. Values that are similar to data types are valid, such as int and float, but for other data types, such as Integer and character types, the Hermit transform cannot be implemented, and the display transform must be used. To achieve this display conversion, T-
Oracle's PLSQL single-line functions and group functions are a program with zero or multiple parameters and a return value. Oracle has a series of built-in functions in SQL, which can be called SQL or PL/
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.