Re: Mysql - what is the use of DO statement? Hi....
DO expr [, expr] ...
Do is a command which executes the expressions it doesn’t return any results. It is a shorthand for “Select” expr. It has the advantage of slightly faster if u do not care about the result.
DO is useful primarily with functions that have side effects, such as RELEASE_LOCK(). |