oracle創建一個表同已存在表結構一樣(或者同時將數據導入)

--只是建立ta表,與emp表結構相同,並不添加數據

--這種構造與現存表相同結構的表,是不會將comment帶過來的

create table ta as select * from scott.emp where 1=0;



--建立tb表,結構與dept結構相同,將dept表中的數據導入其中

--這種構造與現存表相同結構的表,是不會將comment帶過來的

create table tb as select * from scott.dept where 1=1;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章