Converting yes or no to one letter strings.

From: Lou <lou(at)dayspringpublisher(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Converting yes or no to one letter strings.
Date: 2019-06-04 22:29:58
Message-ID: 555b017e-2449-43a4-19e6-4c19af6017e3@dayspringpublisher.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi everyone,

Is it possible to convert a boolean yes or no field to hold a one letter
string? For example, the strings: 's' 'f' 'p' 'e'

To start off, I just need to convert true to 's'. false will have to be
manually changed to 'f' or 'p' or 'e' as appropriate.

Lou

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2019-06-04 23:01:11 Re: Converting yes or no to one letter strings.
Previous Message Dmitry O Litvintsev 2019-06-04 21:49:17 postgresql11-devel RPM is missing from "Direct RPM downloads"