1
SELECT COUNT(*) num
FROM   (
           SELECT REGEXP_SUBSTR(PWD, '[^,]+', 1, LEVEL) AS USERPWD
           FROM   (
                      SELECT PASSWORD || ',' || LPASS1 || ',' || LPASS2 || ',' || 
                             LPASS3 || ',' || LPASS4 || ',' || LPASS5 PWD
                      FROM   login_master
                      WHERE  LOGIN_ID = ?
                             AND STATUS IN ('Y', 'T')
                             AND APP_ID = ?
                  ) CONNECT BY LEVEL <= LENGTH(PWD) -LENGTH(REPLACE(PWD, ',', ''))
                  + 1
       )
WHERE  USERPWD = ?

你能给出将这些代码转换为mysql的建议吗?

4

0 回答 0