從命令行中刪除數(shù)據(jù)
這里我們將在 SQL DELETE 命令中使用 WHERE 子句來刪除MySQL數(shù)據(jù)表tutorials_tbl所選的數(shù)據(jù)。
以下實例將刪除 tutorial_tbl 表中 tutorial_id 為3 的記錄:
root@host# mysql -u root -p password; Enter password:******* mysql> use TUTORIALS; Database changed mysql> DELETE FROM tutorials_tbl WHERE tutorial_id=3; Query OK, 1 row affected (0.23 sec) mysql>
2015職稱計算機考試書PowerPoint2007中 .. 定價:¥45 優(yōu)惠價:¥42 更多書籍 | |
2015年全國職稱計算機考試教材(2007模 .. 定價:¥225 優(yōu)惠價:¥213 更多書籍 |