sql 代码 set heading off ; set feedback off ; SPOOL ON.SQL; select 'alter table '||a.Table_Name||' move tablespace FSPTDATA;' from sys.all_tables a where a.owner = 'FSPT' and a.tablespace_name <> 'FSPTDATA'; SPOOL OFF; @ON.SQL;