时间:2021-07-01 10:21:17 帮助过:50人阅读
-- Created on 2015/6/15 by LYH
declare
v_fnumber varchar2(10):=‘asd‘;
v_fname varchar2(10):=‘gqy‘;
v_fage int:=12;
v_salary int:=13;
begin
DELETE FROM t_employee
WHERE fname=‘lyh‘;
COMMIT;
end;
3.一个修改的例子
-- Created on 2015/6/15 by LYH
declare
v_fnumber varchar2(10):=‘gqy‘;
v_fname varchar2(10):=‘gqy‘;
v_fage int :=‘12‘;
v_fsalary int :=‘1231231‘;
begin
UPDATE t_employee
SET fnumber=v_fnumber, fname=v_fname,fage=v_fage,fsalary=v_fsalary
WHERE fnumber=‘000000‘;
end;
oracle学习之路(六)两个实际使用的例子
标签:数据 插入 oracle