Received: from tolikus.hq.aaanet.ru (tolikus.hq.aaanet.ru [195.151.212.227]) by hub.org (8.9.2/8.9.1) with ESMTP id HAA71375 for ; Fri, 19 Feb 1999 07:32:05 -0500 (EST) (envelope-from tolik@tolikus.hq.aaanet.ru) Received: (from tolik@localhost) by tolikus.hq.aaanet.ru (8.9.1/8.9.1) id PAA02542; Fri, 19 Feb 1999 15:25:51 +0300 (MSK) (envelope-from tolik) To: Brian Baquiran Cc: Ghita Voda , "'pgsql-sql@postgresql.org'" Subject: Re: [SQL] Insert a long text References: Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII From: tolik@icomm.ru (Anatoly K. Lasareff) Date: 19 Feb 1999 15:25:50 +0300 In-Reply-To: Brian Baquiran's message of "Fri, 19 Feb 1999 20:03:03 +0800 (GMT+0800)" Message-ID: <87ww1ed1gx.fsf@tolikus.hq.aaanet.ru> Lines: 22 X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" >>>>> "BB" == Brian Baquiran writes: >> I want to insert a long text (up to 10.000 words) into a table (for example, table1) into a field (field1) which is a 'text' field. >> I have tried the followings: >> INSERT INTO table1 VALUES (' long text'...) >> UPDATE table1 SET field1='long text' >> and is not working. >> I'm using servlets and Apache server, on Linux. BB> What data type are you using for the text field? As far as I know, the 'text' BB> datatype can only take 8K. BB> I don't know what the maximum size for varchar is. BB> Brian 8K is maximum length of whole record. In your case you must use 'large objects' as datatype for big text. -- Anatoly K. Lasareff Email: tolik@icomm.ru Senior programmer