AdBlock Detected!
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.
SQL USE |
|
SQL > Data Definition Language (DDL) >
USE
The USE keyword is used to select a database in MySQL and SQL Server. The syntax is as follows:
Key Takeaway: The SQL USE statement sets the active database so all subsequent queries run against that database by default. In MySQL, you can still access tables in other databases using the DatabaseName.TableName notation.
For example, if you want to connect to a database called "Scores", you can type in the following: In MySQL, you can access tables in multiple databases by specifying [Database Name].[Table Name]. If the table you want to access is currently in the database you use, there is no need to specify the database name. For example, if you want to access table "Course_110" from database "Scores" and table "Students" from database "Personnel", you can type in the following: Frequently Asked Questions
|
Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.