mysql - Why am I getting `deleting from reference tables` even though I have disables foreign keys -


so deleting records table joining table table.

i have disabled foreign keys before started running statement.

so have 2 tables , b , deleting columns table using join column b delete records match on column id , 1 more criteria in clause.

here query

set foreign_key_checks=0;  delete db.a db.a join db.b using(id) name='xx';  set foreign_key_checks=1; 

why still following 'state' in mysql process list

deleting reference tables

because "referencing table" (db.a) in multi table query (db.a , db.b).

if don't specify table on "delete join", query not work, because mysql not know table trying update.

thereby reference table delete.


Comments

Popular posts from this blog

How to group boxplot outliers in gnuplot -

cakephp - simple blog with croogo -

bash - Performing variable substitution in a string -