Check out example codes for "mysql workbecnh short cut to execute single line query on mac". It will help you in understanding the concepts better.

Code Example 1

For Mac OS
Execute (All or Selection) -> Command + Shift + Enter.
Execute Current Statement -> Command + Enter.
For Winodows
Execute (All or Selection) -> Ctrl + Shift + Enter.
Execute Current Statement -> Ctrl + Enter.

Learn ReactJs, React Native from akashmittal.com