Single-line function: For each row of data to be calculated after a row of output results,SQL single-line functions are divided into character functions, numeric functions, date functions, conversion functions, and other general functions based on
Series Index
Unicode and Emoji
Dictionary tree Trietree and performance testing
Production Practice
Objective
It is common for users to modify the data themselves, and we stipulate that the nickname length is between 2 and 10. Suppose
The character functions are explained in the "Oracle Basic Queries" sectionFirst, the numerical function1, Round (returns the value after rounding)Format:round (x[,y])X, y, numeric expressions, if Y is not an integer, the y integer portion is
Course Description: Database basics, Oracle's Environment architecture, Oracle Architecture, SQL Language Foundation, function usage, constraints, indexes, data dictionaries, group queries, multi-table join queries, subqueries, and more. Through a
Oracle built-in functions are divided into four main categories:
numeric functions
Character functions
Date function
Conversion functions
This analytical numerical function:First, rounding roundRound (DOUBLE,M)Double: we want to
Oracle broadly divides functions into single-line functions, aggregate functions, and analytic functions.Single-line functions are divided into character functions, date functions, conversion functions, numeric functions, general functions, decode
Under Sqlplus, implement the medium-to-English character set conversionAlter session set nls_language= ' AMERICAN ';Alter session set Nls_language= ' Simplified Chinese ';Key points of knowledge:I. Operations related to tables1) Build TableCREATE
xTable of Contents [1] character function [2] numeric operator [3] comparison operator [4] datetime [5] Information function [6] aggregate function [7] cryptographic function [8] Custom function beforeFunctions in the MySQL database can be divided
Oracle Tutorial: Plsql Common Methods SummaryUnder Sqlplus, implement the medium-to-English character set conversionAlter session set nls_language= ' AMERICAN ';Alter session set Nls_language= ' Simplified Chinese ';Key points of knowledge:I.
--Basic functions--select Name,count (ID) from Work_test GROUP by name have count (ID) >1--select Upper (name), T.*,lower (name), substr (name,1,5) from Work_test t--Even table update/*update Work_test Set (Price) = (select T.price from Work_test t
Character functions(1) CONCAT (): Character connectionSELECT CONCAT (' Imooc ', '-', ' MySQL ');//imooc-mysqlSELECT CONCAT (First_name,last_name) as FullName from test;(2) Concat_ws (): Use the specified delimiter for character joins, (the first
First, the basic knowledge1. Oracle server consists of two main parts: Oracle database and Oracle InstanceOracle database: Files that actually hold data on the hard disk and end with. dbfOracle instances: Data structures in physical memory2, the
form QuerySimple QuerySELECT statementQuerying all fieldsSpecify all fields: Select Field Name 1, field name 2,...from table name;SELECT * from table name;Querying a specified fieldSelect Field Name 1, field name 2,...from table name;Query by
Date function1. Select Sysdate from dualQuery the current date2. Select Months_between () from dualQuery the month difference of two dates3. Select Add_months (sysdate,1) from dualAdd one months to a date4. Select round (1.554,1) from dualRounding
One, character functionsThe character function is the most commonly used function in Oracle, so let's see what the character functions are:Lower (char): Converts a string to a lowercase format.Upper (char): Converts a string to an uppercase
Other: 1, Oracle subscript is starting from 1, the Java subscript is a function classification starting from 0: Date function numeric character functions conversion function mathematical function system function---above the current month: increase,
One, character functionsThe character function is the most commonly used function in Oracle, so let's see what the character functions are:Lower (char): Converts a string to a lowercase format.Upper (char): Converts a string to an uppercase
------------------------1. Simple SQL query--------------------------SELECT * from EMP;Select Empno,ename,job from EMP;Select ' number is: ' | | Empno | | ' Name is: ' | | Ename from EMP;Select distinct empno, ename from EMP;Select
Use of the To_date () function in a 1.Oracle database: Insert a record into the EMP table:Sql>InsertInto EMPValues1234,‘Lizelu‘,‘BOSS‘,1234,‘1980-12-06‘,10000.0,0,30);InsertInto EMPValues1234,‘Lizelu‘,‘boss " ' 1980-12-06 ", Span style= "color: #8000
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.