天天看點

建立與已有資料表結構相同的表

把原表内容全部copy進來:

oracle:create   table    newtablename   as       select   *   from   oldtablename;

sql server:select * into newtablename from oldtablename;

ingres:create   table    newtablename   as       select   *   from   oldtablename;

建立空表,加where  1=0;

ingres:create   table    newtablename   as       select   *   from   oldtablename where 1=0