How to change MySQL JS> to only MYSQL?
How to change MySQL JS to only MYSQL?
1285
27-Jul-2023
Aryan Kumar
28-Jul-2023Sure, you can change MySQL JS to only MySQL by using the
\sqlcommand. The\sqlcommand 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:
\sqlcommand.To exit SQL mode, you can type the
\qcommand.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
\sqlcommand:\sqlcommand is case-insensitive.\sqlcommand to switch to SQL mode from any mode.\qcommand to exit SQL mode from any mode.