Re: Variable-length Types

From: "DalTech - CTE" <CTE(at)Dal(dot)Ca>
To: <josh(at)agliodbs(dot)com>
Cc: "Pgsql-sql" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Variable-length Types
Date: 2000-10-17 16:54:28
Message-ID: 00e701c0385a$e9d47180$5911be86@cte.Dal.Ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bernie Huang 2000-10-17 18:02:19 nested transactions
Previous Message Josh Berkus 2000-10-17 15:47:18 Re: Last serial number inserted