是否有一种方法可以找到默认值,该值是像000/000/0或11111或99999相同数字的组合?
我想在SQL数据库中找到相同数字的组合,例如0000
或000/000/0/0
或11111
或99999
等。
是否有办法在不进行硬编码的情况下找到这些值?
我目前正在做的是:
select * from XXXX where value = '000/000/0'
I want to find values in the SQL database that is a combination of the same number such as 0000
or 000/000/0
or 11111
or 99999
etc.
Is there a way to find these values without hardcoding?
What I am currently doing is:
select * from XXXX where value = '000/000/0'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一个简单的解决方案是删除字符串的第一个字符的所有实例,并检查结果是否是一个空字符串:
A simple solution is to remove all instances of first character of the string, and check if the result is an empty string:
尝试一下:
如果您需要使用应用程序或其他第三方的填充列值。您可以使用以下的存储过程:
仅使用
Try this on :
If you need fill column values with application or other third-party. you can use stored procedure like below:
for call just use