[SQL] Information about the command SQL " create synonym".

2004-10-12 Thread Gerald . Laurent
Hello ! I am trying to find some informations about the SQL command "create synonym". The command "create synonym" does not exit in the Postgres database. I had tested with the latest version (postgres8.0 beta3) and this command is not present. I supposed that this command "create synnonym" is

[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] Re: optimizing select ... not in (select ...)

2001-08-13 Thread Laurent Martelli
>>>>> "Tomas" == Tomas Berndtsson <[EMAIL PROTECTED]> writes: Tomas> Laurent Martelli <[EMAIL PROTECTED]> writes: >> I have this query : >> >> select distinct on (Pictures.PictureID) * from Pictures where >> Picture

[SQL] Re: Donations?

2001-08-13 Thread Laurent Martelli
a request on the site, telling how much you are willing to spend to see it developped. Other users can join you so that's more money for the developpers. Developpers can submit proposals. You choose one, commit money on it, the developper does the work, you pay him and everybody's happy

[SQL] optimizing select ... not in (select ...)

2001-08-13 Thread Laurent Martelli
) -- Laurent Martelli [EMAIL PROTECTED] http://www.bearteam.org/~laurent/ ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

[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

[SQL] varbit question

2001-05-15 Thread Laurent Duperval
(n) but if I use the (n) argument, the script fails. I can only use varbit alone. How do I get around that? Also, will ResultSet.getBytes() (I'm talking Java here) return an array of bytes with a field defined as varbit? How large will the field be? Thanks, L -- Laurent Duperval <mailt

[SQL] lo_import for storing Blobs

2001-03-02 Thread Laurent
I need to store a binary file in a database. I use a cgi writed in shell to do it. So I can use Postgres user to execute the cgi. How can I store a binary file in a database with a cgi ? Thanks a lot. Laurent. ---(end of broadcast)--- TIP 2