2021年11月6日 星期六

15-SQL命令- drop table刪除表格 - delete from 差異

SQLite是一個RDBMS(relational database management system,

關聯式資料庫管理系統),

SQLite中的lite意味著在設置,資料庫管理和所需資源方面的輕量級

SQLite 是一個非常可靠的資料庫,它可以處理 TB 級的資料。

SQLite 號稱是部署和使用最廣泛的資料庫引擎。

SQLite具有以下值得注意的功能:

>>無伺服器(Serverless)

>>獨立自成體系Self-Contained

>>零配置Zero-configuration

>>交易性Transactional

££££本單元內容如下:

Drop Table 
DROP TABLE "
表格名";

X---Truncate Table 
TRUNCATE TABLE "
表格名";

(MY SQL才能用);SQLite要用>Delete From 
DELETE FROM "
表格名";

DROP TABLE "表格名";

表格及記錄全刪

DELETE FROM "表格名

只刪除全部記錄

練習

sqlite .open testdb1

sqlite .table

person  test

sqlite .clone testdb2

person... done

test... done

sqlite .open testdb2

sqlite .table

person  test

sqlite select * from test;

11|1111111111

22|2222222222

33|3333333333

sqlite drop table  test;

sqlite .table

person

sqlite select * from person;

john|0911000111|M|30000

marry|0922000222|F|25000

lee|0933000333|M|33000

wang|0944000444|M|50000

victor|09123456789|M|55000

babe|0955566566|F|46000

sqlite truncate table person;

Error: near "truncate": syntax error

 

 

 

 

 

 

相關單元:

01-資料庫DATABASE相關專有名詞介紹-RDBMSDBMSdatabasetablerecordfieldPrimary KeyForeign keydatabase normalizationFirst normal form1NF)、2NF

https://youtu.be/-lpbA1pjPzs

02-SQLITE3簡介

https://youtu.be/Zj6d5G6bgCo

03-sqlite3視窗版安裝概念

https://youtu.be/HiPk_pZFBCQ

03安裝SQLliteSQL語言(Windows )

https://youtu.be/pE9cw-JeHfA

04 SQL基本命令 SQLite3為例 create table insert table update select https://youtu.be/txYFSUdjttA

05 SQL的運算與delete刪除記錄

https://youtu.be/bjyvA1va-9Q

06-SQL基本命令 -insert一次插入多筆記錄及練習

https://youtu.be/-D8IPgCOqBE

06-SQL基本命令 -insert一次插入多筆記錄及練習

https://youtu.be/-D8IPgCOqBE

07-SQL命令-alter table add增加欄位

https://www.youtube.com/watch?v=t8vRQ9Ccyys

08-SQLite3-mode顯示或切換-資料顯示格式

https://youtu.be/tBqQc-YVapA

09-SQL where 條件-and or not-between and -in-綜合練習

https://youtu.be/dZP9bfz93YY

10-SQL命令-文字運算-文字合併||-通配字元% _-where 欄名 likewhere 欄名 in

https://youtu.be/DOvb7gLPq9s

11-SQL函數及應用說明

https://youtu.be/gd6-DxLGEGg

12-函數實務練習

https://youtu.be/6uMzAQ6IESw

13-SQL命令- group by 分類 -order by asc desc排序

https://youtu.be/aP_US1ob2jA

14-SQL命令- distinct group by  havingsum avg round函數

https://youtu.be/ItUt6-4_pD0

15-SQL命令- drop table刪除表格 - delete from 差異

https://youtu.be/6CmFNCCuwNY

SQLite總複習(整理)

https://youtu.be/m-ZiWP-PSZg

 

 

相關演講:

20211004社群行銷之客戶關係管理

https://youtu.be/goWBKR7fLqw

 

相關活動:

 ▶▶▶▶▶▶▶▶活動資訊

臺灣雲市集 TCloud 計畫 最高可獲政府補助點數 30,000 1 = 新臺幣 1 叡揚雲端方案連結

https://reurl.cc/a9RVvQ

線上講座_找對雲端工具包,打造營運新活水 叡揚資訊 雲端及巨資事業群 賴俊仁 處長

https://reurl.cc/AkpA7Z

 

標籤

#database#table#Record#field#primary key#Foreign Key#First normal form1NF#DBMS(DataBase Management System)#RDBMS(Relational DataBase Management System)#database normalization#關聯式資料庫管理系統#資料庫管理系統#資料庫#表格#記錄#欄位#第一階正規化#第二階正規化#資料庫正規化#主鍵#外鍵#ACCESS#MYSQL#MariaDB#SQLite3

頻道

#SQLite頻道

https://www.youtube.com/playlist?list=PLWkbsqjwqW3gSEIUilE2KFXXu0sTWxh2u

 

 


沒有留言:

張貼留言

如何免費增加monica AI使用次數

⚡chrome 線上應用程式商店-Monica-ChatGPT4驅動的AI Copilot https://chromewebstore.google.com/detail/monica-your-ai-copilot-po/ofpnmcalabcbjgholdjcjblkibo...