oralce基本命令隨筆

以表test7 爲例
table

建立一張表:test

    create table test7(id int,addr char,name varchar(20));
date

插入一行數據:select

    insert into test7 values(011,'beijing','lidongwei');
float

增長表的列:im

alter table test7 add a4float;數據

alter table test7 add a5 REAL;tab

查看每行rowid:    di

    select rowid from test7;
let

根據rowid查看數據:    

    select * from test7 where rowid='AAAU83AAEAAAa52AAA';

更新數據:

    update test7 set id=002,addr='haidian',name='xizhimen';

刪除數據:

    delete from test7  where id=002;

刪除整張表數據:

    truncate table test7;

相關文章
相關標籤/搜索