gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] Might ref.consumable substances need to allow an amou


From: Jim Busser
Subject: Re: [Gnumed-devel] Might ref.consumable substances need to allow an amount of zero?
Date: Sun, 04 Sep 2011 21:36:09 -0700

        alter table ref.consumable_substance
        add constraint ref_consumable_uniq_subst_amount_unit
                unique(description, amount, unit);

should better be case-insensitive? e.g.

        alter table ref.consumable_substance
        add constraint ref_consumable_uniq_subst_amount_unit
                unique(upper(description), amount, upper(unit));


-- Jim



reply via email to

[Prev in Thread] Current Thread [Next in Thread]