桌子:
CREATE TABLE venue (id INTEGER DEFAULT NEXTVAL('venue_id_seq'), building_code building_code, floorNo int, roomNo int, width int, length int);
功能:
CREATE or REPLACE FUNCTION roomCode(_id int ) RETURNS text AS
$$
SELECT building_code + floorNo + roomNo FROM venue as v WHERE _id = v.id;
$$ LANGUAGE SQL;
如何将某些属性连接在一起?