Re: Printing a variable to the console
I think you use the Command Line prompt.
In my version of MySQL Workbench, I have lightning bolts at the top of my screen and at the end of the code, if I give it "SELECT @mnewnumber" then it outputs that into an output section of the screen, which is a step forward.
But there is another variable called "cnt". If I put "SELECT cnt" at the end of my code, nothing shows in Output.
I have tried to change the name of "cnt" to "@cnt" and it won't let me.
Mike
Subject
Views
Written By
Posted
433
March 23, 2023 07:03PM
214
March 24, 2023 05:39AM
Re: Printing a variable to the console
702
March 24, 2023 10:42AM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.