SQL的魅力就在于可以使用它演变出层出不穷效果。SQL在于折腾。
看一下仅仅使用substr和length函数给我们带来的乐趣。
看SQL,不说话。
sec@ora10g> col secooler for a8
sec@ora10g> select substr ('secooler', rownum, 1) "secooler" from all_objects where rownum <= length ('secooler');
secooler
--------
s
e
c
o
o
l
e
r
8 rows selected.
Good luck.
secooler
09.12.12
-- The End --
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70034820/viewspace-2994179/
,如需转载,请注明出处,否则将追究法律责任。