[SQL] Select Match on PostgreSQL.

2003-08-29 Thread Laurent Patureau
running MySQL as root') AS score -> FROM articles WHERE MATCH (title,body) AGAINST -> ('Security implications of running MySQL as root'); But how can I do it on PostgreSQL where Match syntax is not accepted ? Thanks to help me. Regards. La

[SQL] Function and insert

2002-11-27 Thread Laurent Patureau
Hi, I want to do a function that insert a row on a table like : CREATE FUNCTION ajout_secu(INT4) RETURNS OID AS 'INSERT INTO test_2 VALUES($1);' LANGUAGE 'SQL'; PG refuse to accept the type returns oid as the function is not a SELECT. What can I do ? thanks for your help, LP --

[SQL] UPDATE with concatenate

2001-06-07 Thread Laurent Patureau
Hy, I try to update a table:col with take the valueof this col and concatenate it with $val. I don't want to select all value of table:col and addition $val at each one I try : UPDATE table SET col .= '$val' But it doesn't work, any suggestion ? pat ---(end of broa