skip to Main Content

Finding all subqueries in sql using regex – Mysql

Following regex (s*select([^()]*)) giving all subqueries but it ignores when subquery contains any sql functions like max(), count(), ....etc regex works for below SELECT student.name, teacher.name, sub.subject_name FROM student student JOIN teacher teacher on teacher.id=student.teacher_id JOIN (select subject.name subject_name, subject.id…

VIEW QUESTION
Back To Top
Search