Name
DO
Synopsis
DOexpression
[,...] | (statement
)
This statement suppresses the display of an expression’s results. Multiple expressions may be given in a comma-separated list. As of version 4.1 of MySQL, subqueries may be given. Here is an example:
DO (SET @company = 'Van de Lay Industries' );
This statement creates the @company
variable
with the value given, but without displaying any results.
Get MySQL in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.