Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f55JdeE64621 for ; Tue, 5 Jun 2001 15:39:40 -0400 (EDT) (envelope-from pgsql-interfaces-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f52CSOE77482 for ; Sat, 2 Jun 2001 08:28:24 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f52CCrU36291 for pgsql-interfaces@postgresql.org; Sat, 2 Jun 2001 08:12:53 -0400 (EDT) (envelope-from news) From: "Frank" X-Newsgroups: comp.databases.postgresql.interfaces Subject: about PostgreSQL...(important) Date: Sat, 2 Jun 2001 20:14:59 +0800 Organization: NKFUST Lines: 41 Message-ID: <9falko$t0q$1@bbs.nkfu.edu.tw> X-Complaints-To: kevin@news.nkfust.edu.tw X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: pgsql-interfaces@postgresql.org X-Archive-Number: 200106/25 X-Sequence-Number: 1687 Hi to all: I have a question. PostgreSQL is Object-Relational DBMS . Can I progam Object-Oriented Language for PostgreSQL? Example: I create two tables: create table Address( street char(20), city char(20), province char(20) ); create table students( no int4, name char(8), address Address, ) insert into Address values ('ZHONG-SHAN','TAIPEI','TAIWAN'); I find the Address record's oid: => select oid from Address where province='TAIWAN'; oid -------- 28672 Then, I insert a record to students table: => insert into students values (8852,'John',28672::Address); Finally, I select the record about the student's province depend on oid: =>select no,name,address.province from students; BUT PostgreSQL's message is error,why? Thank you..... Frank