编写一个过程来检查输入字符串是否包含字符而不是显示错误 [英] write a procedure to check if the input string contain character than it show error

查看:74
本文介绍了编写一个过程来检查输入字符串是否包含字符而不是显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须验证输入字符串



我的输入字符串是varchar2数据类型,如果用户输入:



09090a779



应显示错误信息:

字符不允许

i have to validate the input string

my input string is in varchar2 datatype and if the user inputs :

09090a779

than it should show error message :
"character not allowed"

推荐答案

不,它不应该显示此消息。这没有任何意义,将是一个巨大的滥用。如果您只需输入数字,则可能需要一种数字类型。



-SA
No, it should not show this message. It just makes no sense and would be a huge abuse. If you need to enter only digits, you probably need one of numeric types.

—SA


这篇关于编写一个过程来检查输入字符串是否包含字符而不是显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆