Re: [SQL] search and replace

2004-06-13 Thread Benoît BOURNON
I do not try, may be it exists different languages to make this in postgresql : I make this in pl/pgsql, I do not have time to make this in C, CREATE OR REPLACE FUNCTION "_replaceblock" (text, text, text) RETURNS text AS' DECLARE  text_begin ALIAS FOR $1 ;  key_name ALIAS FOR $2 ;  key_val

Re: [SQL] Replace function ...

2004-05-20 Thread Benoît BOURNON
I try to reencode postgresql db ... all is running ... in your shell : - pg_dump db  -f fileout - iconv fileout i do not remember parameters but iconv converts the file. - createdb db -U unicode (for example) - pgsql db < fileout_converted We change previous year the encoding of this webs

Re: [SQL] Triggers

2004-01-18 Thread Benoît BOURNON
I try pgmail and that is well running ... fo security, do not use attachment files with your mail ... try pgmail, you need to use pl/tclu ... Ben Sai Hertz And Control Systems wrote: Dear Uzo , Hi, does postgresql support the ability to email as in SQL Server? I want to create a trigger which

Re: [SQL] postgresql and ColdFusion

2003-12-09 Thread Benoît BOURNON
Oh dear a man using CF with postgresql ! ... OH YES ! ... try to use jdbc pilot to connect to postgresql with CFMX ... maybe you can use cfstoredproc with cfprocparam and cfprocrsult Roberto Mello wrote: On Mon, Dec 08, 2003 at 05:38:56PM -0800, viola wrote: Hi, How to call Pos

Re: [SQL] connectby

2003-11-04 Thread Benoît BOURNON
I use postgresql 7.2.3 How can I use connectby ?? Must I install files ? or packages ? or it is recommanded to upgrade dataserver ? George Essig wrote: hi I have menu table: id | integer | not null default nextval('public.menu_id_seq'::text) parent_id | integer |

Re: [SQL] Insert a description while creating a table

2003-08-14 Thread Benoît Bournon
comment on table "test" is 'fziofeiozfiezojfezjfeziojfeziojf ezfjioezifj ezio' ; Rod Taylor wrote: On Wed, 2003-08-13 at 07:56, [EMAIL PROTECTED] wrote: Hi, I want to insert descriptions at the columns of my tables but without using the command COMMENT ON. I want to do it to

Re: [SQL] [pg-sql] - Problem with duplicate table (PostgreSQL 7.2.3

2003-08-14 Thread Benoît Bournon
No trigger Just triggers for foreign key in spectacle and none in spectacle_v How is it possible to verify triggers for foreign keys ? Stephan Szabo a écrit: On Fri, 8 Aug 2003, BenLaKnet wrote: When I duplicate this code in an other table named spectacle_v without Foreygn

Re: [SQL] [pg-sql] - Problem with duplicate table (PostgreSQL 7.2.3

2003-08-14 Thread Benoît Bournon
we make a dump before ... and with a product pgmanager (ems tech) we do not show any foreign keys. But I think all of triggers of referenced table are not deleted. We recreate the schemas ... and now is running. How is it possible to identify Triggers with no referenced tables ? Stephan Sz

Re: [SQL] Recursive request ...

2003-07-19 Thread Benoît Bournon
ower.net/rjhalljr/Serve/MySQL/traer.html http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=adjacency+list+%2B+tree+%2B+joe On Wednesday 09 Jul 2003 8:57 pm, Benoît Bournon wrote: I have to make a function that returns a tree with title and link of a table. Recursively, a in

Re: [SQL] Recursive request ...

2003-07-19 Thread Benoît Bournon
vinfo/DBMSTrees/sqltrees.html http://users.starpower.net/rjhalljr/Serve/MySQL/traer.html http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=adjacency+list+%2B+tree+%2B+joe On Wednesday 09 Jul 2003 8:57 pm, Benoît Bournon wrote: I have to make a function that retu

[SQL] Recursive request ...

2003-07-09 Thread Benoît Bournon
I have to make a function that returns a tree with title and link of a table. Recursively, a information depends on a parent information. It is to organise a menu with parent dependance. How is it possible and faster ? in C ? pl/pgsql or other ? ---(end of broadcast)--

[SQL] Upgrade 7.2.3 -> 7.3 or more

2003-06-01 Thread Benoît Bournon
I have to use PREPARE statement, I have just read an article that this function is not implemented in 7.3 version ? is it correct or not ? If I must tu upgrade my server : I install different languages in databases, must I reinstall all of them after upgraded ? Ben --

Re: [SQL] tablename as attribute in pgplsql

2003-06-01 Thread Benoît Bournon
Thx to Staphan Finally I find a solution : I have tables with different languages and I must find the correct languages : DECLARE  chaine VARCHAR := 'category';    col_return VARCHAR := 'id_category_unique' ;  col_id VARCHAR := 'id_category' ;  col_value INTEGER := 5 ;  lang_id INTEGER := 3

[SQL] How can I use a name of table in attribute of function, I try PREPARE...

2003-06-01 Thread Benoît Bournon
I can do that on PostgreSQL 7.3 ?? Is it possible to do that ? or must I upgrade my server ?? PREPARE q1(text) FROM SELECT * FROM pg_tables WHERE tablename = $1 ; EXECUTE q1 USING 'client' ; DEALLOCATE q1 ; ---(end of broadcast)--- TIP 3: if po