char(19) to varchar(32)

From: Marc Tardif <admin(at)wtbwts(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: char(19) to varchar(32)
Date: 2000-01-18 14:04:48
Message-ID: Pine.BSF.4.10.10001181342200.7039-100000@server.b0x.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I have created a rule to update a char(19) field from a varchar(32) field.
I don't mind if half the field is cut out, I just want to copy the first
19 characters. Here's what I have
... update products set company=NEW.company;

company is char(19);
NEW.company is varchar(32);

Any suggestions on making this work?
Marc

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message The Hermit Hacker 2000-01-18 17:20:08 Ordering a date_part() query ...
Previous Message omid omoomi 2000-01-18 10:48:22 Re: [SQL] Ordering a date_part() query ...