本文介绍了检查列是否包含1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 您好我有以下SQL语句。我想检查返回的值是否包含1.我该怎么办?任何帮助,将不胜感激。以下是我的代码: SELECT pd.IsSerialNumberMaskRequired 来自 ProductSetup.ProductVersion as pv INNER join ProductSetup.ProductDetail as pd on pv.ProductHeaderId = pd.ProductHeaderId 其中 pv.ProductVersionId = ' 24127' 以上SQL语句返回4行记录,每行的值为1,1,0,1。 它有31,我该如何确定?解决方案 Hi I have the following SQL statement. I want to check whether the returned value contain 1. How can I do it? Any help would be appreciated. Below are my codes:SELECT pd.IsSerialNumberMaskRequired from ProductSetup.ProductVersion as pvINNER join ProductSetup.ProductDetail as pdon pv.ProductHeaderId = pd.ProductHeaderIdwhere pv.ProductVersionId = '24127'The above SQL statement return 4 rows of records with the value 1, 1, 0, 1 for each row.It has 3 "1", how can I determine it? 解决方案 这篇关于检查列是否包含1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-15 17:30