MySQL Forums
Forum List  »  MySQL Workbench

Re: Printing a variable to the console
Posted by: Michael Smith
Date: March 24, 2023 10:42AM

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

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Printing a variable to the console
461
March 24, 2023 10:42AM


Sorry, you can't reply to this topic. It has been closed.

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.