> 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
- [SQL] Variable-length Types Itai Zukerman
- Re: [SQL] Variable-length Types Josh Berkus
- Re: [SQL] Variable-length Types Tom Lane
- Re: [SQL] Variable-length Types Josh Berkus
- Re: [SQL] Variable-length Types KuroiNeko
- Re: [SQL] Variable-length Types Josh Berkus
- Re: [SQL] Variable-length Types Josh Berkus
- Re: [SQL] Variable-length Types Bruce Momjian
- Re: [SQL] Variable-length Types Itai Zukerman
- DalTech - CTE