Addcslashes-adds a backslash escape character to a partial character in a string addslashes-the character inside the string in the specified way bin2hex-converts the binary data to a hexadecimal representation of the Chop-rtrim () alias function chr-
[Background] in the business logic, data of a field needs to be processed. it is required that the data starting from the right side should be removed from the data starting from the first place and being 0 in a row. We get used to using the rtrim
String function string comparison function if the result length is greater than the maximum value of the max_allowed_packet system variable, the return value of the string value function is NULL. See section 7.5.2 "Adjust server Parameters ".
String
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.
Generally, the entire string is
String functionsstring comparison functionsIf the length of the result is greater than the maximum value of the Max_allowed_packet system variable, the return value of the string value function is null. See section 7.5.2, "Tuning server parameters."
We update the MySQL datasheet real-time trigger SQL Server in the corresponding table of additions and deletions, first of all, add the original MySQL table triggers, including the following three:Insert data:Delimiter | |DROP TRIGGER IF EXISTS
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
() 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
The following shows how to implement MySQL data table update real-time trigger SQL Server inside the corresponding table to add and delete operations, first, increase the original MySQL table trigger, including the following three:Inserting data:
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.