Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What setting displays script commands to screen?

Status
Not open for further replies.

DeepDiverMom

Programmer
Jul 28, 2003
122
US
When I run scripts via &quot;source <filename>&quot;, the results of the script commands display just fine, but I also want the commands themselves to display also, as though I had typed them in at the MySQL prompt. In Oracle, we'd say
&quot;SET ECHO ON&quot; before running the script. What is the MySQL equivalent setting/command?
 
Gurus, may I infer from the &quot;0 replies&quot; to this thread that this is a &quot;HARD&quot; question? If a couple of &quot;This Forum's Top Experts!&quot; in the right-hand margin respond with, &quot;I don't know&quot; or &quot;It can't be done&quot;, then I'll understand...Knowing that is better than &quot;0 replies&quot;.

Thanks,

Becca
 
DeepDiverBecca:
No one on that &quot;Top Experts&quot; list has the time, energy, or inclination to answer in the negative to every post he/she can't or won't answer. I, for example, am in that list on at least 6 different fora, so there aren't enough hours in the day to answer in the negative to every post I don't answer.

Or are we supposed to do this just for your posts?

You want to know about the mysql command-line app? Try
Want the best answers? Ask the best questions: TANSTAAFL!!
 
If there is no proper solution, you could always add a &quot;dummy&quot; command before each real command you want, outputing the relevant data.

eg. within the source file, precede each command with something like

select &quot;Command1&quot; from table1 where ref=1;
 
Nigel, Thanks for your constructive response. Using your suggestion, I ended up simply with:

SELECT &quot;<command text>&quot;;

...since MySQL doesn't need a FROM clause (as Oracle does).

Your help solved my problem.

Cheers !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top