pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PALAYRET Jacques <jacques.palayret@meteo.fr>
To: pgsql-general@lists.postgresql.org
Subject: Re: Removing Last field from CSV string
Date: Sat, 16 May 2020 18:31:30 +0200 (CEST)
Message-ID: <786586020.3966730.1589646690749.JavaMail.zimbra@meteo.fr> (raw)

Hello, 

Perhaps, a statement like : 
substring(theString, 1, length(theString)-position(',' IN reverse(theString))) 

with theString 'Class V,Class VI,Class VII,Competitive Exam,Class VIII*,Class' for example. 
Regards 
----- Météo-France ----- 
PALAYRET JACQUES 
DCSC/MBD 
jacques.palayret@meteo.fr 
Fixe : +33 561078319 

view thread (7+ messages)  latest in thread

Message-ID: <786586020.3966730.1589646690749.JavaMail.zimbra@meteo.fr>
Permalink:  ../786586020.3966730.1589646690749.JavaMail.zimbra@meteo.fr/
Also on:    postgresql.org/message-id/786586020.3966730.1589646690749.JavaMail.zimbra@meteo.fr

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: jacques.palayret@meteo.fr
  Subject: Re: Removing Last field from CSV string
  In-Reply-To: <786586020.3966730.1589646690749.JavaMail.zimbra@meteo.fr>
  References: <786586020.3966730.1589646690749.JavaMail.zimbra@meteo.fr>

* 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