EasyDemo*oracle資料庫小知識點總結
阿新 • • 發佈:2018-12-20
1.新建表的兩種方式: 1.1sql語句建立(需重新整理) 1.2sqldeveloper-》選中資料庫->表->滑鼠右擊->新建表 2.對錶進行編輯: 選中要操作的表->滑鼠右擊->編輯->可為表建立約束條件、索引、儲存、註釋 同時可修改列名、資料型別、大小、是否非空、預設值、註釋、新增列、刪除列等 3.操作表常用sql語句: 建立表: create table student( xh number(4), xm varchar2(20), sex char(2), birthday date, sal number(7,2) ); 刪除表: drop table student; 查看錶: desc student; 選中表中所有列: select * from student; 查詢表中某列值為空: select * from student where birthday is null; 清屏: clear