Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
89 views
in Q2A Core by
I deleted more than 10000 questions from phpyadmin. Now I want to delete the answers of those questions. can you pls give the code to delete those questions.

for inatance:

at first that code will check whether a answer's parentid exist or not. IF not exist then it will delete. otherwise, no
Q2A version: 1.8.6
by
+3
How did you delete them? Referential integrity should have been enforced and, if they had dependent records, the operation should have failed
by
I disabled foreign key checks.
by
+2
Why would you do that? Foreign key constraints are an important safeguard for maintaining referential integrity of your database (i.e. keeping your data consistent).

Please log in or register to answer this question.

...