SELECT me.artistid, me.name, me.rank, me.charfield, me.parentid
FROM artist me
START WITH name = ?
- CONNECT BY parentid = prior artistid
+ CONNECT BY parentid = PRIOR( artistid )
)',
[ [ name => 'root'] ],
);
SELECT COUNT( * )
FROM artist me
START WITH name = ?
- CONNECT BY parentid = prior artistid
+ CONNECT BY parentid = PRIOR( artistid )
)',
[ [ name => 'root'] ],
);