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

Query how superfluous strings of a column of specified length are represented by ellipses

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Query a column of the specified length of the string how to use ellipsis to express, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

We often use the Gridview control, but sometimes, the content displayed is too much, which can easily lead to page distortion and ugliness. Sometimes, in order to be beautiful, we only need to display the first few strings, and the rest can be represented by ellipses.

The following is pasted with a sql intercept string code

Select substring (column name, start, end) as column name from table

For example: substring (masked download.0pl 20) as M_download from Movie

After reading the above, have you mastered the method of querying how to express the excess of a string of specified length with an ellipsis? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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

Database

Wechat

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

12
Report