SQL里面的 a:=4 这个样子是啥意思? SQL里面的 a:=4 这个样子是啥意思? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 调用包含out/ in out类型参数的存储过程 存储过程: CREATE OR REPLACE PROCEDURE "SITE_EDITSITEDATAEXIST" (id_ number, name_ varchar2, httpRoot_ varchar2, flag out integer )//out 只具备输出功能 in out 为输入/输出型 as tempNum integer; begin flag:=0; select count(id) into tempNum from WebSite_Info where Name = name_ and ID<>id_; if tempNum > 0 then flag:=3; end if; select count(id) into tempNum from WebSite_Info where HttpRoot = HttpRoot_ and ID<>id_; if tempNum > 0 then flag:=4; end if; commit; end ; /也就是说上面的存储过程中,出现flag:=的地方就是给flag变量赋值 等號前加“:”,這是oracle变量赋值寫法,其它沒有兩樣了 ORACLE的赋值语句 ,像Pascal语言和Dephi语言类似,用a:=X来赋值。 数据库加密问题 ORECALE 数据库的to_date函数使用 关于序列的问题2 计算 字符串类型 的时间差 oracle+java 数据不存在错误 关于视图的问题 各位帮忙,如何定义一个job,让它在每个月的24点触发一个存储过程! 字符转换??? ORA-01555的错!感谢,请帮我看看! sql*plus 注册问题? 如何把Acess数据库导入Oracle数据库?谢谢 一个简单的问题,哪位帮我看看
存储过程:
CREATE OR REPLACE PROCEDURE "SITE_EDITSITEDATAEXIST"
(id_ number,
name_ varchar2,
httpRoot_ varchar2,
flag out integer )//out 只具备输出功能 in out 为输入/输出型
as
tempNum integer;
begin
flag:=0;
select count(id) into tempNum from WebSite_Info where Name = name_ and ID<>id_;
if tempNum > 0 then
flag:=3;
end if;
select count(id) into tempNum from WebSite_Info where HttpRoot = HttpRoot_ and ID<>id_;
if tempNum > 0 then
flag:=4;
end if;
commit;
end ;
/也就是说上面的存储过程中,出现flag:=的地方就是给flag变量赋值