Format Function - Mailing list pgsql-sql

From Yudie
Subject Format Function
Date
Msg-id 009c01c2d6c6$fb985b90$8401a8c0@yudie
Whole thread Raw
Responses Re: Format Function  (Josh Berkus <josh@agliodbs.com>)
List pgsql-sql
Hi,
Is there any default function for formating string in postgre sql?
for instance:
Format('123ABCDE', '####-###-###') => '12-3AB-CDE'
 
The closest function I know is the to_char() function but it only works for numbers
 
please advise
 
Thanks
Yude
 
 

pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Returning multiple rows from plpgsql function
Next
From: Josh Berkus
Date:
Subject: Re: Format Function