DML数据操作语言练习
生活随笔
收集整理的這篇文章主要介紹了
DML数据操作语言练习
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
--創建表T_HQ_BM2
--create table t_hq_bm2 as select * from t_hq_bm;
commit;--添加行內容
--insert into t_hq_bm2 values ('107','研發部','147258369');
commit;--刪除部門編碼為107的行
--delete t_hq_bm2 where bumenbm = '107';
commit;--添加行內容
--insert into t_hq_bm2 (bumenbm,lianxidh) values ('107','147258369');
commit;更新所有的聯系電話為123456789
update t_hq_bm2 set lianxidh = '123456789';
commit;--更新部門編碼為106的聯系電話為147258369
update t_hq_bm2 set lianxidh = '147258369' where bumenbm = '106';
commit;--刪除表內容
delete t_hq_bm2;
commit;
?
轉載于:https://www.cnblogs.com/shadowduke/p/4912742.html
總結
以上是生活随笔為你收集整理的DML数据操作语言练习的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: DB2表结构DDL脚本导出
- 下一篇: unity3d 随机物体生成器 工具