Hey,
i have table B with FK to A (many to one)
I want to delete big amount of data from A,B (all the data that already read from the table and flaged as readed)
since i have the FK i try to delete data from B before delete A
i run this query
delete from B using B,A where Query_events.flag='yes' and B.A_B_Hjid = A.hjid
and it is ok . the problem that i want to limit it to 10000 records each execute
so i added
delete from B using B,A where Query_events.flag='yes' and B.A_B_Hjid = A.hjid limit 10000
but i have problem with the limit.
any idea pleaaaaaaaaaaaaaaaaaaaase
i have table B with FK to A (many to one)
I want to delete big amount of data from A,B (all the data that already read from the table and flaged as readed)
since i have the FK i try to delete data from B before delete A
i run this query
delete from B using B,A where Query_events.flag='yes' and B.A_B_Hjid = A.hjid
and it is ok . the problem that i want to limit it to 10000 records each execute
so i added
delete from B using B,A where Query_events.flag='yes' and B.A_B_Hjid = A.hjid limit 10000
but i have problem with the limit.
any idea pleaaaaaaaaaaaaaaaaaaaase