.bail command in SQLite
.bail command in SQLite stops after hitting an error. What does it mean. Can anyone explain through example
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pravin MoreRank #1,419 · 1.2K reputationPosted Nov 15, 2011, 1:52 AM EST
Hi Monika,
The .bail command controls the error handling behaviour.it only affect noninteractive sesions ,when SQL commands are being read from a file or from standard input.
so,if the "bail" flag is set,any error will cause the processing to stop.
the default is off.
Thanks,
Pravin.
Monika AroraRank #3,013 · 478 reputationPosted Nov 22, 2011, 8:49 PM EST
Pravin MoreRank #1,419 · 1.2K reputationPosted Nov 22, 2011, 9:28 PM EST
Monika AroraRank #3,013 · 478 reputationPosted Nov 23, 2011, 12:57 AM EST