How to change MySQL JS> to only MYSQL?
How to change MySQL JS to only MYSQL?
167
27-Jul-2023
Aryan Kumar
28-Jul-2023Sure, you can change MySQL JS to only MySQL by using the
\sql
command. The\sql
command will switch the MySQL Shell to SQL mode, which means that you will only be able to execute SQL statements.To change MySQL JS to only MySQL, you can follow these steps:
\sql
command.To exit SQL mode, you can type the
\q
command.Here is an example of how to change MySQL JS to only MySQL:
This will execute the
SELECT * FROM products;
statement in SQL mode.Here are some additional things to keep in mind when using the
\sql
command:\sql
command is case-insensitive.\sql
command to switch to SQL mode from any mode.\q
command to exit SQL mode from any mode.