%rowtype mysql_PostgreSQL操作rowtype类型(赋值、插入)
CREATE OR REPLACE FUNCTION create_new_stu()RETURNS trigger AS$BODY$declareusrid int;student students%rowtype;beginusrid := NEW.id;select * from students where sno='111' into student;student.sname := '...