pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gavin Flower <GavinFlower@archidevsys.co.nz>
To: John Fabiani <johnf@jfcomputer.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: interesting sequence (Correctin)
Date: Thu, 07 Jul 2011 07:38:10 +1200
Message-ID: <4E14B9A2.7070907@archidevsys.co.nz> (raw)
In-Reply-To: <4E142F1A.8060900@archidevsys.co.nz>
References: <201107050652.22187.johnf@jfcomputer.com>
	<4E142F1A.8060900@archidevsys.co.nz>

On 06/07/11 21:47, Gavin Flower wrote:

I forgot the format required of the order number, so to get the full 
yesr, I should have used:
to_char(day, 'YYYYMMDD')

[...]
>         v_order_num := type::text ||
>                        '-' ||
>                        to_char(day, 'YYMMDD') ||
>                        '-' ||
>                        v_seq_new::text;
[...]

Cheers,
Gavin

Message-ID: <4E14B9A2.7070907@archidevsys.co.nz>
Permalink:  ../4E14B9A2.7070907@archidevsys.co.nz/
Also on:    postgresql.org/message-id/4E14B9A2.7070907@archidevsys.co.nz

 · 

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: GavinFlower@archidevsys.co.nz, johnf@jfcomputer.com
  Subject: Re: interesting sequence (Correctin)
  In-Reply-To: <4E14B9A2.7070907@archidevsys.co.nz>

* 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