oracle| Function | conversion | String Oracle Common numerical functions, conversion functions, string functions introduced.
numeric function:
Absolute value of ABS (m) m
MoD (M,n) m is the remainder after the n is removed
Power (M,n) m's
Library of String functions in Lua
The LUA interpreter has limited support for strings. A program can create strings and concatenate strings, but cannot intercept substrings, check the size of a string, and detect the contents of a string. The
Transferred from: http://www.cnblogs.com/jiajiayuan/archive/2011/06/16/2082488.htmlFor example, all of the following are examples of studnet tables:Calculating string LengthsLen () is used to calculate the length of a stringSelect Sname, Len (sname)
Comparison of string interception functions between MySQL database and SQL Server databaseMySQL string intercept function: SUBSTR (string string,num start,num length)String is the original string,Start is the starting position (starting at 1),Length
Tag:substring asc -- intercept upper ring length sql highlight The/*len (string) function lower (string) function upper (string) function LTrim (string) function RTrim (string) function substring (string,start_position,
The string truncation function refers to: Stuff and SubString, string lookup functions are: CharIndex and PatIndexOne, SubString intercept sub-stringThe most commonly used string function to intercept substrings of a specific length.SUBSTRING
SQL has many built-in functions that can be used for counting and computation.Syntax of the functionThe syntax for the built-in SQL function is:SELECT function (column) from tableTypes of functionsIn SQL, there are several kinds of basic function
I. Common formatting functions1. Date Turn stringSelect To_char (Current_timestamp, ' yyyy-mm-dd HH24:MI:SS ')//2017-09-18 22:41:50YYYY: Year (4 and more bits)MM: Month number (01-12)DD: Day of one months (01-31)HH24: Hours of the day (00-23)MI:
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.
Tag: Convert specified BST index dex to specified position character ring capitalization1. The CHARINDEX function is used to find the starting position of a specified character (string) in another string, returns an integer, returns 0 if not
Oracle
Mysql
Mssql
Returns the start character in a string (from left)
INSTR
INSTR
CHARINDEX
Sub-string
SUBSTR
SUBSTRING
SUBSTRING
String length
LENGTH
--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
String functions are used to perform various operations on characters and binary characters1.ASCII () functionThe ASCII (character_expression) function is used to return the leftmost ASCII code value in a string expression. The parameter
len (expression) returns the number of characters (not bytes) of the given string expression, with no trailing spaces. DATALENGTH (char_expr) returns a string that contains the number of characters but does not contain the following spacesLength
This article is not ready to introduce all of the Oracle functions, in the current situation, I do not have this time, need to learn too much, to spend most of the time on learning to use the technical aspects:), so if you are ready to learn all the
First, Function: Split ()Function: Use a specified delimiter to store a string into an arrayExample:Str= "Jpg|bmp|gif|ico|png";Arr=thestring.split ("|");Arr is an array that contains the character values "JPG", "BMP", "GIF", "ico", and "PNG"Second,
Generally, the entire string is used as the operation object, for example: search for a substring in a substring, obtain a substring, insert a substring at a certain position in the substring, and delete a substring. The required and sufficient
C language is not a very convenient language, and its string is an example. According to the C language definition, "a string is a piece of memory space, which contains ASCII characters and ends with" \ 0 ". It can store a total of N-1 characters ."
String is a finite sequence composed of zero or multiple characters. It is generally recorded as s = 'a1a2 • an '(n> = 0 ). It is the data type that represents text in programming languages.Generally, the entire string is used as the operation
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.