Re: [SQL] [PHP] faster output from php and postgres (one resolution)

2003-05-30 Thread Chadwick Rolfs
My solution to the problem stated below was to learn plpgsql, and write a function that loops through the returned records, concatenating a string together, and returning that string as the Author field. This function was actually e-mailed to me by a collegue, and I did a bit of doctoring (it still

Re: [SQL] [PHP] faster output from php and postgres

2003-05-27 Thread Chadwick Rolfs
Yes, this may be better than foreach()ing through each publication returned. But a plpgsql function may suit these needs much better. On Tue, 27 May 2003, Jean-Luc Lachance wrote: > KISS > > why not use PHP to concatenate the authors while pub_id is the same??? > If you insist on having each au

Re: [SQL] [PHP] faster output from php and postgres

2003-05-27 Thread Jean-Luc Lachance
KISS why not use PHP to concatenate the authors while pub_id is the same??? If you insist on having each author in its own column, put them at the end and concatenate with . jll Chadwick Rolfs wrote: > > So, I have the same problem, but I need all authors for each publication > to show up in

Re: [SQL] [PHP] faster output from php and postgres

2003-05-27 Thread Rod Taylor
On Tue, 2003-05-27 at 14:19, Richard Huxton wrote: > On Tuesday 27 May 2003 5:34 pm, Chadwick Rolfs wrote: > > So, I have the same problem, but I need all authors for each publication > > to show up in it's own column. I tried the full join query from a > > suggestion off pgsql-sql, but it only re

Re: [SQL] [PHP] faster output from php and postgres

2003-05-27 Thread Chadwick Rolfs
On Tue, 27 May 2003, Richard Huxton wrote: > On Tuesday 27 May 2003 5:34 pm, Chadwick Rolfs wrote: > > So, I have the same problem, but I need all authors for each publication > > to show up in it's own column. I tried the full join query from a > > suggestion off pgsql-sql, but it only returns O

Re: [SQL] [PHP] faster output from php and postgres

2003-05-27 Thread Richard Huxton
On Tuesday 27 May 2003 5:34 pm, Chadwick Rolfs wrote: > So, I have the same problem, but I need all authors for each publication > to show up in it's own column. I tried the full join query from a > suggestion off pgsql-sql, but it only returns ONE author id TWICE instead > of ALL authors at once.

Re: [SQL] [PHP] faster output from php and postgres

2003-05-27 Thread Chadwick Rolfs
So, I have the same problem, but I need all authors for each publication to show up in it's own column. I tried the full join query from a suggestion off pgsql-sql, but it only returns ONE author id TWICE instead of ALL authors at once. I'll do some RTFMing of the joins.. and post any results I g