제로베이스 스터디노트 SQL Chapter 1 - 3
드디어 mysql 실행 성공ㅠㅠ
show databases;
use databaseName;
create datababseName;
drop databaseName;
create user 'username'@'localhost'
identified by 'user';
drop user 'username'@'%';
show grants for
grant all on table.* to
revoke all on table.* from
create table tableName
(
id int,
...
);
show tables;
desc tableName;
drop tableName;
alter table tableName
RENAME Tablename
ADD COLUMN name type
MODIFY COLUMN name type
CHANGE COLUMN old new type
DROP COLUMN name