[SQL] when inserting to table, text type parameter become NULL (after big assignment to this parameter)

2007-10-17 Thread Sofer, Yuval
Hi, I am trying to get server parameters (pg_settings) using a cursor and insert them to one column table. A stored procedure parameter holds the long string. The insert of this parameter succeeds. The problem is that the string (the parameter value) is not inserted to the table. W

Re: [SQL] Having difficulty writing a "best-fit" query..

2007-10-17 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, "Jamie Tufnell" <[EMAIL PROTECTED]> writes: > Hi list, > I have a many-to-many relationship between movies and genres and, in the link > table I have a third field called which orders the "appropriateness" of the > relations within each movie. > For example: > mo

[SQL] two queryes in a single tablescan

2007-10-17 Thread Stefano Dal Pra
Hi everybody, suppose you have a large table tab and two (or more) queryes like this: SELECT count(*),A FROM tab WHERE C GROUP BY A; SELECT count(*),B FROM tab WHERE C GROUP BY B; is there any way to get both results in a single query, eventually through stored procedure? The retrieved [count(*)

Re: [SQL] [PERFORM] two queryes in a single tablescan

2007-10-17 Thread Stefano Dal Pra
On 10/17/07, Heikki Linnakangas <[EMAIL PROTECTED]> wrote: > Stefano Dal Pra wrote: > > suppose you have a large table tab and two (or more) queryes like this: > > > > SELECT count(*),A FROM tab WHERE C GROUP BY A; > > SELECT count(*),B FROM tab WHERE C GROUP BY B; > > > > is there any way to get b

[SQL]

2007-10-17 Thread Boergesson, Cheryl
Hello. I am trying to upgrade from PostgreSQL 8.0.3 to PostgreSQL 8.1.10. I have a very simple routine that works fine with the 8.0.3 version: int easy_connect() { exec sql connect to my_db as my_cnxtn; printf ("connection results:\n"); printf ("code: %d\n", sqlca.sqlcode); printf ("stat