1.ASCII returns the decimal number corresponding to the specified character;
Sql> Select ASCII (' a ') a,ascii (' A ') a,ascii (' 0 ') zero,ascii (') space from dual;
A A ZERO space--------- --------- --------- ---------65 97 48 32
2.CHR gives an
Ø Basic Common Query
--select
SELECT * from student;
--all Query All
Select all sex from student;
--DISTINCT Filter Repeat
Select distinct sex from student;
--count Statistics
Select COUNT (*) from student;
Select count (Sex) from student;
Select
Single-record functions in SQL
1.ASCII
Returns the decimal number corresponding to the specified character;
Sql> Select ASCII (' a ') a,ascii (' A ') a,ascii (' 0 ') zero,ascii (') space from dual;
A A ZERO space
--------- --------- --------- -------
1. Numerical functionsfunction return value sample displayCeil (n) the smallest integer greater than or equal to the value N, SELECT ceil (10.6) from TABLE_NAME; 11Floor (n) the largest integer less than or equal to the value N, SELECT floor (10.6)
Stitching FieldsThe data stored in a database table is generally not the format required by the application. We need data directly from 检索出转换、计算或格式化过 the database, rather than retrieving the data, and then reformatting it in the client application
It's been a long time since I wrote a blog, I'm going to write a string functionQQ Group: 499092562; Welcome to ExchangeString functions:1, LEN (need to get the length of the string)Return: Length of stringExample:SELECT LEN (' The little porter is
The most important thing you need to know about Python code optimization is that you never have to write timing functions yourself.
Timing for a very short code is complicated. How long does the processor have to run this code? Is there anything
I haven't written python for a while, and I have studied. Net in my spare time and helped my friends solve some problems. In this way, Python has not been touched for nearly two months. (* ^__ ^ *), This articleArticleIt is also written for. NET as
This article will introduce some interesting functions that trisi often uses in daily life, or which are rarely used. There are two types of introduction:
Famous functions-frequently used functions
Non-famous functions-although rarely used, they are
Oracle character FunctionsDescription: The input value of a character function is of the character type and the return value is of the character or number type. It can be used directly in an SQL statement or in a PL/SQL block.
1. ASCII (n)
MySQL must know the v1cn learning Summary----Blog, http://blog.csdn.net/shunqiziranhao007/article/details/8730477Date, January 1, March 28, 2013----Official website,Http://forta.com/books/0672327120/---- This book is suitable for getting started
1. ASCII: returns the decimal number corresponding to the specified character;SQL> select ASCII ('A') A, ASCII ('A') A, ASCII (0) zero, ASCII ('') space from dual;A A zero space------------------------------------65 97 48
2. CHR: returns an integer
MySQL Translator: Yanzi http://www.mysql.com/doc.html
Http://www.99net.net/doc/database/1076488199/1076550810.html
If the result length is greater than the server parameter max_allowed_packet, the string value function
Name
Zhang Yi
Time
June 28, 2016
Learning content
Today, I have modified a vulnerability in the software to reflect the views of users.The flaw is simple: the software does not provide the option to adjust
--string function. Returns the ASII code of the leftmost letter of the stringPrint ASCII (' ABCDE ')Print ASCII (')Print char (--ASCII) conversion between code and characters--*charindex The starting index of the corresponding character segment in
1. String Functions--Converts the average height to ASC CodeSelect ASCII (AVG (Shengao)) from SG--Converts the maximum weight to a character typeSelect CHAR (MAX (Tizhong)) from SG--Returns a string of four-bit soundex codeSelect SOUNDEX (' LSKD ')--
ABS (X)
ABS (x) returns the absolute value of x.Abs (x) returns null if X is null.Abs (x) return 0.0 if X is a string or blob of that cannot being converted to a numeric value. If X is the integer-9223372036854775807 then abs (X) throws a
This article will introduce some of the functions that are often used in everyday life, or that are very interesting, though they are rarely used. It is divided into two kinds of introductions, namely:
Famous letters-functions that are often
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.