SYSTEM
Example
Section titled “Example”SYSTEM echo "Executing system command from MySQL";Output
Section titled “Output”Executing system command from MySQLExplanation
Section titled “Explanation”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”.