xxxxxxxxxx
In ORACLE SQL, Highlight the code and press "Ctrl" + "Enter key" OR click the play button above after highlighting the code
xxxxxxxxxx
#Executing a SQL script is easy
mysql -u user -p database < myScript.sql
#Replace the following elements by yours:
#- user: with your user
#- database: with your database
#- myScript.sql: by your script
#This command will ask the user's password.
xxxxxxxxxx
mysql -u yourUserName -p yourDatabaseName < yourFileName.sql
xxxxxxxxxx
/*in Sql Server (SSMS)*/
/*Hightlight the statements you would like to execute*/
/*Then click on the green play button (somtimes with the word execute) or press F5*/