Re: php cant see new table!!
От | Sears, Jeremy |
---|---|
Тема | Re: php cant see new table!! |
Дата | |
Msg-id | B7F9814D6850C949947CF8DEA134778103316124@s5-ccr-r2.ccrs.nrcan.gc.ca обсуждение исходный текст |
Ответ на | php cant see new table!! ("Sears, Jeremy" <Jeremy.Sears@CCRS.NRCan.gc.ca>) |
Ответы |
Re: php cant see new table!!
|
Список | pgsql-novice |
Hi, Thanks for the response Michael. I have read over the documentation but I am still unclear as to why php doesnt see my new table. I can see it in my database, however php is unable to access it. I suspect that in the process of creating the table I must have missed an essential command or somthing.. Can anyone suggest what Ive missed? Thanks Jeremy this is the sql I used to creat the table: CREATE TABLE "st"."IAM_appid" ( "id" INTEGER NOT NULL, "application" CHAR(25) NOT NULL, CONSTRAINT "IAM_appid_id_key" UNIQUE("id") ) WITH OIDS; COMMENT ON COLUMN "st"."IAM_appid"."id" IS 'application ID'; COMMENT ON COLUMN "st"."IAM_appid"."application" IS 'description'; -----Original Message----- * From: Michael Fuhr <mike ( at ) fuhr ( dot ) org> * To: "Sears, Jeremy" <Jeremy ( dot ) Sears ( at ) CCRS ( dot ) NRCan ( dot ) gc ( dot ) ca> * Subject: Re: php cant see new table!! * Date: Fri, 17 Feb 2006 21:39:42 -0700 On Fri, Feb 17, 2006 at 10:55:10AM -0500, Sears, Jeremy wrote: > I have sucessfully created a new table in a schema known as "st". I can view > the contents of my database and see that this table exists. However when I > attempt to connect to it via php, I get the following error: > > Warning: pg_query(): Query failed: ERROR: relation "st.iam" does not exist Is the table name st.iam or st."IAM"? If you don't understand the difference then see the section about quoted identifiers in the documentation: http://www.postgresql.org/docs/8.1/interactive/sql-syntax.html#SQL-SYNTAX-ID ENTIFIERS -- Michael Fuhr
В списке pgsql-novice по дате отправления: