Re: [GENERAL] TEXT and BLOBS

2000-11-10 Thread Ben Souther


- Original Message -
From: Martin A. Marques <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 08, 2000 8:36 AM
Subject: [GENERAL] TEXT and BLOBS


> I want to find out how confused I am. ;-)
> I'm testing something on a Postgres 7.0.2 database. I made a small table
with
> two columns, one serial and the other TEXT, and tried to make serveral
> inserts with PHP.
> Some went OK, until I tried to insert a large amount of text. It failed.
Of
> course, I did it on porpose to check the 8 K tuple limitation.
> Until here, am I right?
> So, now I'm gonna try to make inserts to a table just like the other one,
but
> with the slight change of making the text column a oid column.
> The questions are:
> 1) where are the blobs stored?
> 2) Is it posible to insert a chunk of text that has not been saved to a
file?
> 3) where is all the documentation on the behave of BLOBS? All I have found
> was in Bruce's book. I couldn't find such things in the users
documentations.
>
> TIA
>
> --
> "And I'm happy, because you make me feel good, about me." - Melvin Udall
> -
> Martín Marqués email: [EMAIL PROTECTED]
> Santa Fe - Argentina http://math.unl.edu.ar/~martin/
> Administrador de sistemas en math.unl.edu.ar
> -
>




[GENERAL] RE: Foreign key

2000-10-27 Thread Ben Souther



Never mind..found it.
 
ALTER TABLE distributors ADD CONSTRAINT distfk 
FOREIGN KEY (col_name) REFERENCES table_name(col_name) MATCH 
FULL   


[GENERAL] Foreign keys, adding to table.

2000-10-27 Thread Ben Souther



Quick easy one:
Could someone please tell me the syntax for adding 
a foreign key constraint to an existing row in an existing table.
Thanks.