Search Postgresql Archives

Re: missing FROM clause ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Zlatko Matić wrote:
Hello. In Postgres 8.1 I have a message that there is a missing FROM
clause in the following query:

select into l_validity "rok_valjanosti"."rok_valjanosti" FROM (
SELECT min("rok_valjanosti"."rv_id") AS "rv_id",
"rok_valjanosti"."rok_valjanosti" FROM "rok_valjanosti" GROUP BY
"rok_valjanosti"."rv_id", "rok_valjanosti"."rok_valjanosti") sve;

If I change parameter "add missing from" in postgresl.conf to "on"
than it works... I would like to include FROM clause, but can't see
where.

That subquery is called "sve" so I think you meant
  SELECT INTO l_validity svw.rok_valjanosti FROM ...

--
  Richard Huxton
  Archonet Ltd


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
      message can get through to the mailing list cleanly


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux