06-SQLite之update、delete,06-sqliteupdate

來源:互聯網
上載者:User

06-SQLite之update、delete,06-sqliteupdate
一、update文法

update 表名 set 列表名 = 新值 where 列表名 = 某值
二、更新某一行中的某一列資料

三、更新某一行中的若干列資料


四、delete語句:用於刪除表中的行
文法:delete from 表名稱 where 列名稱 = 值;
五、刪除指定行的資料

六、刪除所有行的資料但修改表的結構(表persons還是存在,只是裡面沒有資料)
文法:delete from table_name或者delete * from table_name;

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.