postgresql7.4 SELECT name FROM lrc_lab WHERE lab_id = :lab_id INSERT INTO lrc_lab_student_map (lab_id, user_id) VALUES (:lab_id, :student_id)