1.

The option that executes all SQL statements in a SQL script irrespective of the number of errors is _______________(a) –run(b) –ensure(c) –force(d) –violentI have been asked this question during an internship interview.This is a very interesting question from SQL Statement Syntax (Non-Compound Statements) in chapter SQL Syntax of MySQL

Answer»

The correct answer is (c) –force

Easy explanation: If SQL queries in a file are RUN USING mysql in batch mode, mysql either QUITS after the first error. If the –force option is specified all the queries are executed INDISCRIMINATELY.



Discussion

No Comment Found

Related InterviewSolutions