Hi,
is there a way i can make a restriction for inserting
data on a table?

I'll expose this idea with a simple (not real)
example.

Suppose i got table EMPLOYEE, wich has an attribute
called FLG_HAS_DEPENDENTS. I also have a table called
DEPENDENTS, wich has data for the dependents of some
employees. Although, i can only let the inserting of
dependents information for the employees_id that have
the FLG_HAS_DEPENDENTS checked.

I know this is part of my business logic, but i'd like
to make one more checking before inserting on db.

Thanks,
ltcmelo

=====
beginner

______________________________________________________________________

Yahoo! Messenger - Fale com seus amigos online. Instale agora! 
http://br.download.yahoo.com/messenger/

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to