当前位置:网站首页>数据库函数的用法「建议收藏」
数据库函数的用法「建议收藏」
2022-07-04 13:54:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
dgkhjbxx–客户表 列(khmc)客户名称 列(khbh)客户编号
apply_main_crdt–申请表 列(cust_no)客户编号
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中的用法就是
select cmis_getkhmc(cust_no) from apply_main_crdt;
这个用法就是在对应的表中(dgkhjbxx)有对应的客户编号,才能查询出对应的名称,
没有对应的编号就会显示成空,有对应的编号就会显示出对应的客户名称
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/149321.html原文链接:https://javaforall.cn
边栏推荐
猜你喜欢
When synchronized encounters this thing, there is a big hole, pay attention!
如何搭建一支搞垮公司的技术团队?
Details of FPGA underlying resources
MySQL组合索引(多列索引)使用与优化案例详解
函数计算异步任务能力介绍 - 任务触发去重
They are all talking about Devops. Do you really understand it?
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
Deep learning neural network case (handwritten digit recognition)
Halcon knowledge: NCC_ Model template matching
夜天之书 #53 Apache 开源社群的“石头汤”
随机推荐
十六进制
C language course design questions
关于FPGA底层资源的细节问题
5g TV cannot become a competitive advantage, and video resources become the last weapon of China's Radio and television
Opencv learning notes - linear filtering: box filtering, mean filtering, Gaussian filtering
Five minutes per day machine learning: use gradient descent to complete the fitting of multi feature linear regression model
从0到1建设智能灰度数据体系:以vivo游戏中心为例
Helix swarm Chinese package is released, and perforce further improves the user experience in China
Summer Review, we must avoid stepping on these holes!
Optimization method of deep learning neural network
左右对齐!
Luo Gu - some interesting questions
毕业季-个人总结
PLC Analog input analog conversion FC s_ ITR (CoDeSys platform)
如何配和弦
They are all talking about Devops. Do you really understand it?
Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作
Leetcode 1200 minimum absolute difference [sort] the way of leetcode in heroding
局部修改-渐进型开发
LVGL 8.2 keyboard