postgresql7.3 SELECT * from beehive_pattern where num = :technique_num SELECT * from beehive_ses where number = :session_id insert into beehive_sesf (snumber,teacherid) values (:session_id,:user_id)