语句如下
select
filename || '|' || substr(filename, 0, instr(filename, '.', -1) - 1) || '.pdf' as filename,
filepath || '|' || substr(filepath, 0, instr(filepath, '.', -1) - 1) || '.pdf' as filepath,
lower(substr(filepath, instr(filepath, '.', -1) + 1)) || ',pdf' as filetype
from ...
问题:太综合了,虽然单个的函数instr与substr都知道as俺也是懂点,但我现在有点晕呀,哪位大侠帮忙解释一下呢?已经人工分成三行啦,具体帮忙解释下,若是有例子那就完美了 。谢谢你们了
慕无忌1623718
HUWWW
相关分类