String functions, data type conversions, link queries, portrait queries

Source: Internet
Author: User

String functions: (*= emphasis)
ASCII: is an encoding that turns keys on the keyboard into a number, such as a return key = 13, but only changes the first bit
Char: Converts a number to an ASCII code
Charindex The starting index of the corresponding character segment in the lookup string, from the beginning of the index
(version 12 built-in function) Concat: Returns a string that is the result of concatenating two or more string values
Difference Comparison of Soundex similarity
Soundex: Returns a 4-bit string converted by four-bit letters
Space: Print space for you
Left: Intercepts the string at the beginning of the specified length
Right: Intercepts the end of the string specifying the length
Len: Go back space to calculate length return integer
Upper: lowercase to uppercase
Lower: Uppercase to lowercase
LTrim: Remove the front space
RTrim: Remove a space
Patindex: Finds the starting index of the corresponding wildcard character segment in a string, starting with the index
Replace: Find replacement, three parameters, 1. Target string 2. String segment to check 3. Replace with that string segment
REPLICATE: Copies the specified string and stitching it back into a string
REVERSE: Flipping a string
STR: The float type, after interception, converts the bit string type
Stuff: Removes a specified length of Word string from the specified location after inserting a new string
SUBSTRING: Intercepting strings

Data type conversions:
Cast: First Data, later type
Conbert: First type, after data

Link query:

Select column name, column name from table name join table name on table name. column name = table name. Column Name

The syntax is join on

Association:

Left JOIN (full)

Right join (left full)

Vertical Link:

Select column name, column name from table name Union Select column name, column name from table name

String functions, data type conversions, link queries, portrait queries

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.