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 convert 64 base to 10 base in Oralce

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

It is believed that many inexperienced people don't know what to do about how to convert 64 to 10 in Oralce. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

1. Realization letter

Create Or Replace Function Sf_To_Deci (Str In Varchar2) Return Number As Digit Number (32) Begin Select Sum (Data) Into Digit From (Select (Case When Ascii (Substr (Str, Rownum, 1)) = 43 Then 62 When Ascii (Substr (Str, Rownum) ) = 47 Then 63 When Ascii (Substr (Str, Rownum, 1)) Between 48 And 57 Then Ascii (Substr (Str, Rownum, 1)) + 4 When Ascii (Substr (Str) Rownum, 1) Between 65 And 90 Then Ascii (Substr (Str, Rownum, 1))-65 When Ascii (Substr (Str, Rownum, 1)) Between 97 And 122 Then Ascii (Substr (Str, Rownum) 1)-71 Else Null End) * Power (64, Length (Str)-Rownum) Data From Dual Connect By Rownum

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