如何判断变量是否是"123"结尾? substr(countnum,length(countnum)-2,lentgh(countnum)=123; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 IF substr(countnum,-3) = 123 THENELSEEND IF; -- Created on 2005-5-14 by XACB declare -- Local variables here i integer; s varchar2(200);begin s :='asd123'; -- Test statements here if(s like '%123') then dbms_output.put_line('OK'); end if;end; Oracle 关于数据完整性的讨论 如何写这个sql oracle作业 winxp安装oracle10g后,在别的电脑上不能连到我的机器上为什么? 简单问题:SQL查询所有用户的名称 这个sql怎么写? 关于字段的别名为啥不能再条件中用呢? 关于数据库恢复的问题?急 插入数值时提示小时值必须在1-12之间 sos!!oracle全表搜索---在线等待!!!! 对CLOB字段全文索引很慢怎么办? 关于tnsping的问题
ELSE
END IF;
declare
-- Local variables here
i integer;
s varchar2(200);
begin
s :='asd123';
-- Test statements here
if(s like '%123') then
dbms_output.put_line('OK');
end if;
end;