2013年2月21日 星期四

同義字


同義字

create synonym "ST"
for 學生;

select * from "ST";

等於是該資料表的替身,
以後就可以用"ST"來操作 學生 資料表了。

查詢垃圾筒資料


--建立員工資料表
create table 員工
as
select * from employees;

--刪除員工資料表
drop TABLE 員工;

--查詢垃圾筒
show recyclebin;

2013年2月19日 星期二

替代變數


select * from dept
where department_id = &id;



PS、只能在ORACLE工具裡使用。