--------------------string function---------------------------ASCII returns the ASCII encoding of the first letter of a stringSelect ASCII('W')Select ASCII('a')Select ASCII('s')Select ASCII('D')Select ASCII(name) fromXueshengxinxiSelect *
Attention:SQL is case insensitiveI. Retrieving SELECTRetrieve a single column select Pro_idform products; retrieve multiple columns select Pro_id,pro_name,pro_priceform products; retrieve all columns select *form products;Two. Sort data order by
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
1. function
The portability of functions is not very strong, and different DBMS have different functions
2. Text Processing function
function
description /tr>
left ()
length ()
Mathematics function
1. Absolute value
Copy Code code as follows:
S:select ABS ( -1) value
O:select ABS ( -1) value from dual
2. Rounding (Large)
Copy Code code as follows:
S:select Ceiling ( -1.001) value
MySQL date and time format conversion Linux SCP Usage Detailedoracle/mysql/sqlserver Function Differences2011-07-01 12:34:36| Category: MySQL technology | Tags:mysql sqlsever oracle functions | Report | Font size Big medium small subscription
1. Len (): Calculates the string length
2. Lower (), Upper (): string converted to large, lowercase
3. LTrim (), RTrim (): Truncate the left and right spaces of a string
4. Space (): Returns a string consisting of repeated spaces
5.
--This article is for study notes, ("T_sql" Robert Sheldon Translator: Feng Yu Hui Source: TT China)---------------------------------------Function--string function--intercepts the value of a stringSelect Name,left (name,12) as a,--intercept from
Measure the test taker's basic programming skills.
Note:
1 subscript Processing
2. Review the meaning of the question and remove the Weight Based on the question.
3. How to write the code clearly and concisely.
#include #include const short
Welcome to the Oracle community forum and interact with 2 million technical staff to access single-line string functions for operating string data. Most of them have one or more parameters, and most of them return string ascii () c1 is a string and
Oracle single-line string functions are one of the most important Oracle functions. The following describes the syntax of Oracle single-line string functions in detail. If you are interested in Oracle single-line string functions, take a
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>
Quick query of Oracle function list
2004-10-20 22:53:13
PL/SQL single-row functions and group functionsA function is a program with zero or multiple parameters and a return value. Oracle has a series of
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>
1: replace FunctionThe first parameter is your string, the second parameter is what you want to replace, and the third parameter is what you want to replaceSelectreplace ('lihan', 'A', 'B ')-----------------------------Lihbn
(The number of affected
Mysql string function collection is more comprehensive bitsCN.com
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
MySQL string function Daquan bitsCN.com
MySQL string functionsFor operations on the string position, the first position is marked as 1.
ASCII (str)
Returns the ASCII code value of the leftmost character of the str string. If str is a null string, 0
If a string function provides a binary string as a parameter, the result string is also a binary string. The number converted to a string is treated as a binary string. This only affects the comparison.
If a string function provides a binary string
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.