Name

DO

Synopsis

DO expression[,  . . . ] | (statement)

This statement suppresses the results of an expression. Multiple expressions may be given in a comma-separated list. As of Version 4.1 of MySQL, subqueries may be given:

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 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.