在准备一个将标准化的双精度数字转换为十进制数字的函数时,我需要如下内容: substr(01001011, 2, 5) # what is in fact:"0010" (because leading0 is ignored)substr("01001011", 2, 5) # "1001"; gives whatI want BUT the follo
我编写了一个脚本,以确保我的能够在这个MySQL数据库中正确工作,但我震惊地看到,MySQL将我的值相加在一起: identifier, SUBSTR(cast(identifier as char),6) as 'q',
SUBSTR(cast(identifier as char),1,4)+SUBSTR(cast(identifier as char),6) a