【发布时间】:2018-08-30 05:46:54
【问题描述】:
我需要在 cm_customers$rt 表中创建一个函数,以向常驻客户验证 TAX_NUMBER 是否为 13 位,否则需要将列表显示到屏幕上,我创建了 juste select 但我需要一个函数,请帮助我
select TAX_NUMBER,RESIDENT
from cm_customers$rt
WHERE length (TAX_NUMBER) =13 and resident = 'Y'
;
【问题讨论】:
-
欢迎来到 stackoverflow.com。请花点时间阅读the help pages,尤其是名为"What topics can I ask about here?" 和"What types of questions should I avoid asking?" 的部分。也请take the tour 和read about how to ask good questions。最后请学习如何创建Minimal, Complete, and Verifiable Example。
-
那么是什么阻止你把它变成一个函数呢?您只需要知道客户端期望的数据类型 - 引用游标还是嵌套表?
-
我刚开始学习 pl/sql 我不知道如何创建函数 :D
-
我很感兴趣。您正在学习的课程没有给您任何介绍性教学或指向(例如)the Oracle documentation,而是建议您在 StackOverflow 上随机询问一群陌生人?我希望你不会为这种教学付出太多。
-
我不付钱,我只是在学习