当前位置:网站首页>Usage of database functions "recommended collection"
Usage of database functions "recommended collection"
2022-07-04 15:06:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
dgkhjbxx– Customer list Column (khmc) Customer name Column (khbh) Customer number
apply_main_crdt– The application form Column (cust_no) Customer number
create or replace function cmis_getkhmc(id varchar2)
return varchar2 is khmc_mingcheng dgkhjbxx.khmc%type;
begin
select a.khmc into khmc_mingcheng from dgkhjbxx a where a.khbh=id;
return khmc_mingcheng;
end;
sql The usage in is
select cmis_getkhmc(cust_no) from apply_main_crdt;
This usage is in the corresponding table (dgkhjbxx) There is a corresponding customer number , To find the corresponding name ,
If there is no corresponding number, it will be empty , If there is a corresponding number, the corresponding customer name will be displayed
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/149321.html Link to the original text :https://javaforall.cn
边栏推荐
猜你喜欢
随机推荐
How to build a technical team that will bring down the company?
Hexadecimal form
Analysis of nearly 100 million dollars stolen and horizon cross chain bridge attacked
Redis publish and subscribe
Memory management summary
Graduation season - personal summary
各大主流编程语言性能PK,结果出乎意料
LVGL 8.2 Line wrap, recoloring and scrolling
Redis 解决事务冲突之乐观锁和悲观锁
When synchronized encounters this thing, there is a big hole, pay attention!
深度学习 网络正则化
Five minutes of machine learning every day: how to use matrix to represent the sample data of multiple characteristic variables?
对话龙智高级咨询顾问、Atlassian认证专家叶燕秀:Atlassian产品进入后Server时代,中国用户应当何去何从?
[learning notes] matroid
LVLG 8.2 circular scrolling animation of a label
Force button brush question 01 (reverse linked list + sliding window +lru cache mechanism)
[local differential privacy and random response code implementation] differential privacy code implementation series (13)
如何搭建一支搞垮公司的技术团队?
Redis哨兵模式实现一主二从三哨兵
hexadecimal






![[C language] Pointer written test questions](/img/89/3d463cbbb321e45ba8342f0ddfef8f.png)


