USE database_name

Description: Instructs MySQL to use the database given by database_name as the default database for subsequent queries. Remains current until the thread finishes or another USE is issued.

Get Sams Teach Yourself MySQL in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.