Re: Variable-length Types - Mailing list pgsql-sql

From DalTech - CTE
Subject Re: Variable-length Types
Date
Msg-id 00e701c0385a$e9d47180$5911be86@cte.Dal.Ca
Whole thread Raw
In response to Variable-length Types  (Itai Zukerman <zukerman@math-hat.com>)
List pgsql-sql
> It takes a string and returns something that looks like Varchar(22);
> If someone types in 10 digits, it returns output like (###) ###-####
> If a user enters 7 digits, it picks a default area code and returns
> (415) ###-####,
> and if they type more than 10 digits or enter any digits after an "x",
> they get (###) ###-#### x###


Why not treat each group of ###s as its own variable? You would then have a
lot of freedom to insert defaults if null and the like.

-C. Currie





pgsql-sql by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Last serial number inserted
Next
From: Bernie Huang
Date:
Subject: nested transactions