--只是建立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;
--只是建立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;