svs0r2018 Basic MySQL User Utity Commands - MySQL Reference Manual [Book]
fey; t ERG
Safari
MySQL Reference Manual by Kaj Arno, David Axmark, Michael Widenius
prev Next
'4 ata Definition: CREATE, DROP, ALTER MySQL Transactional and Locking Commands >!
Basic MySQL User Utility Commands
USE Syntax
The USE db_name statement tells MySQL to use the db_name database as the default database for
subsequent queries. The database remains current until the end of the session or until another USE
statement is issued:
UNE (*) PROM mytable; fs
from dbl.mytable
mysql> SELECT COUNT (*) FROM mytable; # selects from db2.mytable
Making a particular database current by means of the USE statement does not preclude you from
accessing tables in other databases. The following example accesses the author table from the dbt
database and the editor table from the db2 database:
thor_nane, editor hor, dh2.edizoz
> WHERE author. edito
editor .editor_id?
The USE statement is provided for Sybase compatibility.
DESCRIBE Syntax (Get Information About Columns)
hips: safarbooksontine.com/ibraryviewimysqhreference-manual0596002650Vch06s06.ntml 18t0r2078 Basie MySCl. User Utity Commands - MySAL. Reference Manual [Book]
string containing the SQL % and — wildeard characters.
If the column types are different from what you expect them to be based on a CREATE TABLE.
statement, note that MySQL sometimes changes column types. See Section 6.5.3.1
This statement is provided for Oracle compatibility.
The SHOW statement provides similar information. See Section 4.5.6.
With Safari, you learn the way you learn best. Get unlimited access
to videos, live online training, learning paths, books, interactive
tutorials, and more.
START FREE TRIAL
No credit card required
Lael
als
aisle}
es
hips: safarbooksontine.comibraryviewimysqhreference-manua’0596002650/ch06s06,nimlsor2018 Basie MySCl. User Utity Commands - MySAL. Reference Manual [Book]
Learn
Ele
(edclas
feel Ey
Press Resources
Support
acts
GitHub
Facebook
LinkedIn
Bo eee las
Deere eee
asad
een ete
nline.comvibraryviewimysq-relerence-manvall n08806.himl