Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Fishing for constraint => SQL designs

by nferraz (Monk)
on May 23, 2007 at 10:32 UTC ( #616969=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
        <table name="foo">
            <field name="a" required="1"/>
            <field name="b" validate="\d+\.\d+\.\d+"/>
            <field name="c" required="if a"/>
  2. or download this
        package Model::Validate::Foo;
                die "c is required if a" if $value_of{a};
  3. or download this
        <table name="foo">
            <constraint name="avg_a" value="average(a) > 100"/>
  4. or download this
        sub avg_a {
            # called on insert, update of table foo
            # check if average(a) > 100

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://616969]
[Tanktalus]: Wow, given the time separation of marioroy's oatmeal cookies and Disciplulus' response, I'm amazed that marioroy responded :)
[Discipulus]: no no seriously, redss posed a good question in the right moment, and you gave as always wonderful answers
[Discipulus]: Tanktalus my comment was about how to fork & join in tk?
[marioroy]: Oh, I've might of missed Discipulus's earlier response. I had gone to bed.
[Tanktalus]: ah, I don't even have the perlmonks site open in my browser :)
Tanktalus is chatting through his cbstats application :)
[marioroy]: Perl is so much fun.
[Discipulus]: Tanktalus i recently started a Meditation about marioroy's MCE suit of modules, but is even better to see a practical question answered than responses to my meditation
[Discipulus]: good night mario!

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2017-04-23 19:47 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (432 votes). Check out past polls.