直接用代码说话
column b new_value c;
select ename b from emp;
列名或别名要与column后的名字对应
fuyou@ORCL> select ename from emp;
ENAME
--------------------
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
MILLER
已选择14行。
fuyou@ORCL> column ename new_value f;
fuyou@ORCL> select ename from emp;
ENAME
--------------------
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
MILLER
已选择14行。
fuyou@ORCL> select '&f' from dual;
原值 1: select '&f' from dual
新值 1: select 'MILLER' from dual
'MILLE
------
MILLER
fuyou@ORCL> spool off
column b new_value c;
select ename b from emp;
列名或别名要与column后的名字对应