Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to enforce a string format in a field??
"Michel Cadot" <micadot{at}altern{dot}org> wrote:
> > "Ramon F Herrera" <ramon_at_conexus.net> a écrit dans le message de > news:c9bc36ff.0411270245.4145eb43_at_posting.google.com...
> > alter table mytable add constraint myct > check (regexp_like(myfield,'^[:digit:]{3}-[:digit:]{2}-[:digit:]{4}$')); >
Good one Michael. But isn't there a version restriction that we should tell the OP? (Regardless that the OP didn't tell us what version is relevant.)
/Hans Received on Sat Nov 27 2004 - 18:14:36 CST