mysql foreign key check

turn off

SET FOREIGN_KEY_CHECKS=0;

turn on

SET FOREIGN_KEY_CHECKS=1;

ex.:

SET FOREIGN_KEY_CHECKS=0;
YOUR QUERY;
SET FOREIGN_KEY_CHECKS=1;

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">