oracle函數應用 substr instr length to_number

某表有一個字段 yc ,數據必爲形如 數字-數字 格式的字符串 現寫一sql語句查出 yc yc左數字值 yc右數字值 而且按照左數字值升序排序: select yc, substr(yc, 0, instr(yc, '-') - 1), substr(yc, instr(yc, '-') + 1, length(yc)), t.* from tablenam
相關文章
相關標籤/搜索