"William IT" <[EMAIL PROTECTED]> wrote: > > I just migeate from MS SQL to MySQL but have problem on "Cascade Update". > Suppose I have BOOK and LIST_TYPE tables like this: > > BOOK, field: Book_Name, Book_Type > LIST_TYPE, field: Book_Type > > If I already define Cascade Update between BOOK and LIST_TYPE, then when I update > the content of Book_Type (from table LIST_TYPE): the Book_Type of BOOK automatically > change too. > > How to perform Cascade Update in MySQL?
Create the FOREIGN KEY CONSTRAINTS and specify ON UPDATE CASCADE: http://www.mysql.com/doc/en/InnoDB_foreign_key_constraints.html -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]