test CHECK on command line

From: "Jean-Yves F(dot) Barbier" <12ukwn(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: test CHECK on command line
Date: 2011-06-17 04:12:03
Message-ID: 20110617061203.0ed54456@anubis.defcon1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi list,

I'm trying to test CHECK constraints on command line but I miss something:

SELECT '1234567890123' ~ 'CHECK(char_length(VALUE) = 13)';

always return FALSE :(

JY
--
"What did you do when the ship sank?"
"I grabbed a cake of soap and washed myself ashore."

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Jean-Yves F. Barbier 2011-06-17 07:56:43 change p/w hashing
Previous Message Oliveiros d'Azevedo Cristina 2011-06-16 13:56:00 Re: Backing Up ?