When you have multiple databases in your SQL Schema, then before starting your operation, you
would need to select a database where all the operations would be performed.The SQL USE statement is used to select any existing database in SQL schema.
Syntax :-
Basic syntax of USE statement is as follows :-
USE DatabaseName;
Always database name should be unique within the RDBMS.
Example :-
You can check available databases as follows :-
would need to select a database where all the operations would be performed.The SQL USE statement is used to select any existing database in SQL schema.
Syntax :-
Basic syntax of USE statement is as follows :-
USE DatabaseName;
Always database name should be unique within the RDBMS.
Example :-
You can check available databases as follows :-
Now, if you want to work with AMROOD database, then you can execute the following SQL command and start working with AMROOD database:
USE AMROOD;

No comments:
Post a Comment