pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: missive@frontiernet.net
To: pgsql-sql@postgresql.org
Subject: Re: to_char()??
Date: Sun, 14 Oct 2001 21:37:36 +0000 (UTC)
Message-ID: <9qd0j0$1gc3$1@news.tht.net> (raw)
References: <9qb2lj$13lv$1@news.tht.net>

> 
> how to
> select substr('hi there',3,5) as xx   -->>  xx change char type
> 

How about:

select substr('hi there', 3, 5)::varchar(5) as xx;

or is this not what you mean?




view thread (6+ messages)  latest in thread

Message-ID: <9qd0j0$1gc3$1@news.tht.net>
Permalink:  ../9qd0j0$1gc3$1@news.tht.net/
Also on:    postgresql.org/message-id/9qd0j0$1gc3$1@news.tht.net

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: missive@frontiernet.net
  Subject: Re: to_char()??
  In-Reply-To: <9qd0j0$1gc3$1@news.tht.net>

* 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