From: | Andreas Kretschmer <akretschmer(at)despammed(dot)com> |
---|---|
To: | PostgreSQL SQL <pgsql-sql(at)postgresql(dot)org> |
Cc: | Bruno Wolff III <bruno(at)wolff(dot)to>, Andreas Kretschmer <akretschmer(at)despammed(dot)com> |
Subject: | Re: [despammed] rejecting characters in a field |
Date: | 2005-06-09 08:39:09 |
Message-ID: | 20050609083909.GI303@webserv.wug-glas.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
am 09.06.2005, um 3:29:15 -0500 mailte Bruno Wolff III folgendes:
> On Thu, Jun 09, 2005 at 09:18:09 +0200,
> Andreas Kretschmer <akretschmer(at)despammed(dot)com> wrote:
> > am 09.06.2005, um 12:36:31 +0530 mailte Kenneth Gonsalves folgendes:
> > > hi
> > > i have a table with a varchar field called 'name'. I want postgres to
> > > reject any insert with characters defined as illegal characters, for
> > > example '*/^#'. How do i do this?
> >
> > With a RULE or a TRIGGER.
>
> Using a check constraint would be better a better way to do this.
Yes, okay.
Regards, Andreas
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47212, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Kellerer | 2005-06-09 11:30:08 | Re: SELECT very slow |
Previous Message | Bruno Wolff III | 2005-06-09 08:29:15 | Re: [despammed] rejecting characters in a field |