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

The use of SUBSTR function

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

Share

Shulou(Shulou.com)06/01 Report--

Http://docs.oracle.com/cd/E11882_01/server.112/e41084/functions181.htm#i87066

Substr syntax:

The substr function returns the part of the character, starting with postition, and returns the optional character length substring_length. Substr calculates the length based on the number of bytes in the char character set. Substrb is calculated using digits bytes, substrc through unicode,substr2 through UCS2 code, substr4 through UCS4

If postition is positioned at 0, the effect is the same as 1.

If postition is positioned as a positive number, the Oracle database starts with the first letter of the char character set

If postition is positioned as a negative number, the Oracle database starts with the last letter of the char character set

If substring_length is omitted, Oracle returns all characters positioned from position to the end of the character set. If substring_length

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