Oracle 里面查询后面不能使用变量吗?
declarev_namevarchar2(50):='技术部';beginselect*fromdepartmentwheredepartmentName=v_name...
declare
v_name varchar2(50):='技术部';
begin
select * from department where departmentName = v_name;
end;
v_name是变量就不行,是固定值就可以。 展开
v_name varchar2(50):='技术部';
begin
select * from department where departmentName = v_name;
end;
v_name是变量就不行,是固定值就可以。 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询