The USE
command tells MySQL which database you want to work with. It sets the default database for your session, so you donβt have to specify the database name in every query.
USE database_name;
To select the database myshop
, run:
USE myshop;
After this, all your commands like SELECT
, INSERT
, or CREATE TABLE
will be applied to the myshop
database by default.
USE
, you might get errors when trying to access tables or data.
Help others discover Technorank Learning by sharing your honest experience.
Your support inspires us to keep building!