NOTE _ 2 wildcards in MySQL: (trailing spaces may interfere with wildcard matching)
% Match any character _ match any single character
Regular expression: REGEXP
The usage is to replace the LIKE position, followed by a regular expression.
Case
Oracle function list:========================================================== ========================================================== ==================================PL/SQL single-row functions and group functionsA function is a program with
Comparison of common functions of SQL Server and Oracle
--------- Mathematical functions1. Absolute ValueS: select abs (-1) valueO: select abs (-1) value from dual2. INTEGER (large)S: select ceiling (-1.001) valueO: select ceil (-1.001) value from
Welcome to the Oracle community forum and interact with 2 million technical staff to enter mathematical functions 1. absolute value S: selectabs (-1) valueO: selectabs (-1) valuefromdual2. INTEGER (large) S: selectceiling (-1.001) valueO: selectceil
Tag: cal. com specifies a numeric localhost character string local operationList of simple examples of functional usage
Function
Function
Usage
Example
Left ()
Returns a substring of the corresponding
String functionsIn developing T-SQL, it is often necessary to perform a variety of operations on strings, and the following describes commonly used string functions. 1. ASCII ASCII code to get charactersThe ASCII code is the standard encoding of
Data from "SQL Must know"A Retrieving dataSELECTL Retrieving a single columnSelect column from table;L Retrieving multiple columnsSelect column, column from table;L Retrieve all columnsSelect * FROM table;Two Sort Retrieve dataL SortSelect column
String functions are used to manipulate the data values in a column, usually of a character type.1, ASCLL (character), converts the specific character to the corresponding integer (ASCII) code, and the result is a positive number.Example: Select
"SQL must Know" learning notes (i)Below is a list of my newly learned knowledge.This is the entire database record.1.order byStatement: SELECT * from Scores order by name, score descExecution Result:①order by when performing the sort function, the
"English" Ben Forta 1 1.0 Select Database use eg:use database name; 2.0 Show Command View information: show databases; Show tables; Show columns from table name; (Displays property information for columns in the table) Show status (displays
The data processing function sometimes obtains from the database table to take some processing. If you replace the lowercase letter with the corresponding uppercase letter. This process can be done on the client or on the database. is more efficient
Replace, concat, and cast character string functions in mysql need to export a personal information of job-seeking users. This information requires three-table joint query requirements: birthdate format: 1990.01.02 Database: Gender display: men and
/**/ASCII (charactor_expression)--Returns the ASCII value of the leftmost character of the string. Select ASCII ('bcd ')Char (integer_expression)-- Convert int ASCIICodeConvert to character Select char (97)Nchar (integer_expression) -- Return with
For operations on the string position, the first position is marked as 1.
ASCII(str)
Returns a string.strASCII code value of the leftmost character.If
strIs a null string and returns
0. If
strYes
NULL, Return
NULL.
mysql>
Single-line string functions
A single-line string function is used to manipulate string data. Most of them have one or more parameters, and most of them return strings.
ASCII (
)
C1 is a string and returns the ASCII code of the first
A single-line string function is used to manipulate string data. Most of them have one or more parameters, and most of them return the string ascii ()
C1 is a string and returns the ascii code of the first letter of c1. Its Inverse Function is chr ()
() function to get the length of a string:Select Length (' ABCDEFG '), Length (' 0123456789 ');/*+-------------------+----------------------+| Length (' ABCDEFG ') | Length (' 0123456789 ') |+-------------------+----------------------+|
For operations on string positions, the first position is marked as 1.
ASCII(str)
Returns the str ASCII code value of the leftmost character of the string. If
str It is an empty string, return
0 . If
str Yes
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.