Use of .echo ON in SQLite
I know that .echo ON display the command we have written. But Whats its use. Why we will display the command we have already written
3 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 17, 2011, 7:29 PM EST
Hi Monika,
if you set echo ON,then output will be SQL script echoed in the CSV file with output.
now lets think of someone who dont have orignal script n have only output file....so he can easily get to know what is flow of output through sql commands,i think thats the use of echo ON.
Note:- you can set it OFF by 2 ways
1.set echo off
2. by calling sqlplus in script with the "silent" option: sqlplus -s
second is nedd when you pass whole script as input to some command like cat,that time 1st not works
Thanks,
Pravin.
Monika AroraRank #3,013 · 478 reputationPosted Nov 20, 2011, 11:47 PM EST
Pravin MoreRank #1,419 · 1.2K reputationPosted Nov 21, 2011, 11:00 PM EST