MySql 基本使用學習筆記

2021-09-23 07:51:53 字數 1253 閱讀 5070

建立資料庫

create database dbname;
顯示可用資料庫

show databases;
選擇想要使用的資料庫

use dbname;
新建表

檢視所使用資料庫中的表

show tables;
檢視表結構

describe(desc) tablename;
檢視表詳細結構

show create table tablename \g
更新表

例:表中新增新列(***)

alter table tablename add *** char(50);
例:表中刪除列(***)

alter table tablename drop column ***;
刪除表

drop table tablename;
表重新命名

rename table tablename to table2
插入資料

insert into tablename  (field-name, field-name,...)

values (field-value,field-value,...)

更新資料

update tablename set fiele-name = value, file-name = value,... 

where 條件

刪除資料

delete from tablename where 條件

sentinel基本使用學習筆記

新增依賴 com.alibaba.cloudgroupid spring cloud starter alibaba sentinelartifactid dependency sentinelresource value hello blockhandler blockhandlerhello p...

fiddler學習筆記 基本使用

左側 展示的是所有會話 右上 某乙個會話的具體請求資訊 requests 右下 伺服器返回的響應資訊 response 其中requests部分各個tab的含義如下 滑鼠移動到會話列表的任意一列的表頭,然後右鍵彈出乙個列表 選擇彈窗中最後一行,單擊,繼續彈出乙個浮動窗 點選collection下拉框...

MySQL 使用筆記0002 基本使用

顯示所有資料庫 show databases 常用函式1 select version select now select user 語法規範 建立資料庫 create database test 刪除資料庫 drop database test 資料型別 資料型別 儲存範圍 tinyint 2 7...