i have query result (25) rows. can i insert them into an column (array) in a table.
thnx
thnx
SELECT course_id, student_id FROM school WHERE course_id in ( select course_id from school group by (course_id) having count(course_id) > 5 );
UPDATE courses set student_id = ( SELECT ARRAY (select student_id from school where courses.course_id = school.course_id) )
SELECT course_id, student_id FROM school WHERE course_id in ( select course_id from school group by (course_id) having count(course_id) > 5 );
UPDATE courses set student_id = ( SELECT ARRAY (select student_id from school where courses.course_id = school.course_id) )
Comment