1. A machine readable medium carrying one or more sequences of instructions for causing a system to validate foreign key constraints on data stored in a database system, wherein execution of said one or more sequences of instructions by one or more processors contained in said system causes said system to perform the actions of: identifying a foreign key constraint defined for said database system, wherein said foreign key constraint comprises a foreign key column in a detail table and a primary key column in a master table; generating a script designed to verify whether the data values stored in said foreign key column of said detail table are present in said primary key column of said master table; and executing said script on said database system to determine whether data stored in said database system satisfies said foreign key constraint.