Home > Database > Mysql Tutorial > oracle函数和存数过程转成mysql

oracle函数和存数过程转成mysql

WBOY
Release: 2016-06-06 09:32:54
Original
982 people have browsed it

mysqloracle函数

create or replace function public_f_get_bsc012
(
v_id in varchar2
)
return varchar2
as
v_temp varchar2(200);
begin

select bsc012 into v_temp from sc05 where bsc010=v_id;
return v_temp;

exception when others then
return '';
end ;
初学,以上是oracle函数,在mysql上一直没写对,求大侠指教

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template