SELECT question

From: Alex <alex(at)meerkatsoft(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: SELECT question
Date: 2003-11-04 10:54:54
Message-ID: 3FA7857E.9080903@meerkatsoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I have a bit string , 7 bits, every bit representing a day of the week.
e.g. 1110011.
Is there and easy way where I can translate/format that string in a query.
I want to give the string back with a '-' for every 0 and the first char
of the Day for every '1'.
example 1100111 = SM--TFS.

thanks for any suggestions
Alex

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2003-11-04 11:12:17 Re: Obtain boolean value of expression in PLPGSQL
Previous Message Hijax 2003-11-04 10:25:58 now() problem