From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: schiva@m2000.co.kr
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] How to use text type field....
Date: Tue, 17 Nov 1998 12:12:43 +0200
Message-ID: <l03110702b276fba6d30b@[147.233.159.109]> (raw)
In-Reply-To: <000101be11ef$556b3da0$4157fbcb@m2000.www.m2000.co.kr>
At 7:58 +0200 on 17/11/98, =?euc-kr?B?vNux4r/4?= wrote:
>
> Hi~ Everyone...
>
> I have some problem... with PostgreSql Version 6.4
>
> I don't know how to use text type data filed...
>
> Hm...
> ---------------------------------------------------------------
> create table test(
> id int primary key,
> data1 text)
>
> How to use "insert into test........" ??
> How to use "update test ....." ???
>
> data1 size is so!!! Big....~~~ Can't execute query...in C Language....
>
> Do you have some sample code with C Language...???
>
> Anybody.... Please.. Help me...!!
Text type is nothing special. You just use
INSERT INTO TEST (id, data1)
VALUES ( 12345, 'This is the text I wanted to Enter' );
and
UPDATE TEST
SET data1 = 'This is the new text I wanted to Enter';
That's all there is to it. Put the text within single quoute. Escape single
quotes within the text by doubling them ('' instead of '). The text may
include newlines and everything:
INSERT INTO TESTE (id, data1)
VALUES (
123456,
'This is a three-line
text field
within the table' );
Just remember not to pass the maximum row size, which I believe is still 8k
for all the fields together.
Herouth
--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: herouth@oumail.openu.ac.il, schiva@m2000.co.kr
Subject: Re: [SQL] How to use text type field....
In-Reply-To: <l03110702b276fba6d30b@[147.233.159.109]>
References: <000101be11ef$556b3da0$4157fbcb@m2000.www.m2000.co.kr> <l03110702b276fba6d30b@[147.233.159.109]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox