STRCMP (str1, STR2)Compares two strings if the two strings are equal to return 0 if the first argument is less than the second parameter in order of the current sort to return-1, otherwise returns 1.mysql> SELECT STRCMP (' MOHD ', ' MOHD '); +-------
18.2.1 MySQL server has gone away errors related to Lost connection to server during query.
The most common cause of the MySQL server has gone away error is that the server times out and closes the connection. By default, if nothing happens, the
MySQL common functions (2) use the help documentation provided by MySQL to list common functions in MySQL databases. Facts have proved that MySQL's online help materials are very practical. On which day would you like to learn from a cute Oracle
() function to get the length of a string:Select Length (' ABCDEFG '), Length (' 0123456789 ');/*+-------------------+----------------------+| Length (' ABCDEFG ') | Length (' 0123456789 ') |+-------------------+----------------------+|
MySQL stored procedure SP explanation
1. Introduction to stored procedures
The commonly used Operating Database Language SQL statements must be compiled and then executed before execution. the Stored Procedure (Stored Procedure) is a set of SQL
MySQL Study Notes 10 (MySQL functions)MySQL learning notes 10MySQL Functions
MySQL database provides a wide range of functions. MySQL functions include mathematical functions, string functions, date and time functions, conditional judgment functions,
MySQL tips 6-MySQL language structure-function bitsCN.com 1. mathematical functions are used to perform complex arithmetic operations. MySQL supports many mathematical functions. If an error occurs, all mathematical functions return NULL. (1)
The commonly used operating database language SQL statements must be compiled and then executed before execution. The Stored Procedure (StoredProcedure) is a set of SQL statements for specific functions, compiled and stored in the database. You can
I. Using String functions1. Combining the String Functions CONCAT () and CONCAT_WS () 1.1 Functions CONCAT () the CONCAT () function joins the passed arguments to return the merged string type data. If one of the parameters is null, the return value
If you have recently performed SELECT or UPDATE queries, you may have used one or more MySQL comparison operators to limit the query output results. Comparison is an integral part of most SELECT queries, and MySQL provides many functions for this
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.