select
sum (data1)
from (select substr(‘1101’,rownum,1) * power(2,length(‘1101’) - rownum) data1
from dual
connect by rownum <= length (‘1101’))
用sql实现二进制转十进制
最新推荐文章于 2024-09-28 06:15:52 发布
select
sum (data1)
from (select substr(‘1101’,rownum,1) * power(2,length(‘1101’) - rownum) data1
from dual
connect by rownum <= length (‘1101’))