MySQL Flashcards
List all database names
show databases;
login to remote DB engine (given user = admin and remote = somedbinstance.com)
mysql -h somedbinstance.com -u admin -p
add a new database with the name somedb
create database somedb
delete a database named somedb
drop database somedb
When referencing database names, MySQL is case sensitive. (True or False)
True
SQL commands are case sensitive. (True or False)
False
display name of current database
select database()
switch to another database that has the name somedb
use somedb
What are the 3 types of data
Numeric, String, and Date
What is the type and range of INT variables?
Numeric
-2.147483647 billion to +2.147483647 billion
List columns and metadata in a table called sometbl
desc sometbl
List table in current database
show tables
Delete a table from current database
drop