### SQL: SELECT id, real_name AS "title", id AS "value", id AS "key", TRUE AS "user", CAST(REGEXP_SUBSTR(dept_id, '[^,]+', 1, LEVEL)AS Decimal(24)) as parentId FROM blade_user WHERE is_deleted = 0 and tenant_id = ? CONNECT BY LEVEL <= REGEXP_COUNT(dept_id, '[^,]+') AND ROWID = PRIOR ROWID AND PRIOR DBMS_RANDOM.VALUE IS NOT NULL
### Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CONNECT BY LEVEL <= REGEXP_COUNT(dept_id, '[^,]+')
AND ROWID = PRIOR ROW' at line 15
扫一扫访问 Blade技术社区 移动端