linux打卡第1天:mkdir的用法
1、mkdir的用法
2、同時創建三個文件夾
3、新建一個多層級文件夾 mkdir -p xxx/xxx
Mysql打卡第1天:創建數據庫 istester
1、啓動mysql
mysql -u root -p
2、創建數據庫
DROP DATABASE IF EXISTS istester;
CREATE DATABASE IF NOT EXISTS istester;
3、顯示數據庫
SHOW DATABASES;
Mysql打卡第2天:創建表
1、use xxxx(database的名字)
2、CREATE TABLE xxx(
……
)
3、show tables;
Mysql打卡第3天:複製表
1、複製表的結構,創建新表
create table istester2 like istester;
2、顯示錶結構
desc istester;
3、複製表的結構和數據
create table idoxu2 as select * from idoxu;
4、複製其他表中特定幾行
create table idoxu3 as select id,stu_id,istester from idoxu where 1<>1;
where 1<>1 表示恆假,即不匹配數據
Mysql打卡第4天:刪除表
drop tale xxx(表名);
show tables;