zoukankan      html  css  js  c++  java
  • 一种使用connect by level转集合的SQL 语句。

    /* Formatted on 12/24/2010 2:02:41 PM (QP5 v5.163.1008.3004) */
    SELECT       TO_CHAR (SUBSTR (c,
                                  INSTR (c,
                                         ',',
                                         1,
                                         LEVEL)
                                  + 1,
                                    INSTR (c,
                                           ',',
                                           1,
                                           LEVEL + 1)
                                  - INSTR (c,
                                           ',',
                                           1,
                                           LEVEL)
                                  - 1)) dayofweek
          FROM   (SELECT ',' || 'MON,TUE,WED' || ',' c FROM DUAL)
    CONNECT BY   LEVEL < LENGTH (c) - LENGTH (REPLACE (c, ','))

    魔兽就是毒瘤,大家千万不要玩。
  • 相关阅读:
    生成器
    迭代器
    装饰器
    Maven工具学习(六)----Maven依赖的版本锁定与版本常量
    SpringBoot学习记录之整合JSP
    SpringBoot学习记录之入门篇
    【k8s】ep-addresses
    【k8s】ep-metadata
    【k8s】Endpoints
    【k8s】cj-suspend
  • 原文地址:https://www.cnblogs.com/tracy/p/1915958.html
Copyright © 2011-2022 走看看