Skip to content

SYSTEM

SYSTEM echo "Executing system command from MySQL";
Executing system command from MySQL

The SYSTEM command in SQL is used to execute a command from the operating system directly from the SQL prompt. In this example, the echo command is used to print a string to the console. The output is the result of the echo command, “Executing system command from MySQL”.