Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the trim function in mysql

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

In this article Xiaobian for you to introduce in detail "how to use the trim function in mysql", the content is detailed, the steps are clear, and the details are handled properly. I hope that this article "how to use the trim function in mysql" can help you solve your doubts.

Description

1. It is used to return the substring after deleting all remstr strings on both sides of the string str, which defaults to a space.

Remstr is optional, and spaces can be deleted if not specified.

2. The string str is returned, where all remstr prefixes and / or suffixes have been deleted.

Grammar

TRIM ([{BOTH | LEADING | TRAILING} [removed_str]] FROM str)

Example

SELECT TRIM ('MySQL string function') AS str1, TRIM ('- 'FROM'-- MySQL string function--) AS str2 Str1 | str2 |-+-+ MySQL string function | MySQL string function | at this point, the article "how to use the trim function in mysql" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it before you can understand it. If you want to know more about related articles, Welcome to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report