本文介绍了如何在C#中使用sqlserver来使用isnull条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 先生, 我使用过c#。我对oracle很熟悉。但是在C#中使用sqlserver获得了知识。我已经习惯了在用户输入数据变量中的oracle中的nvl函数。 但是对于表格列的无效工作是fien而不是变量。请帮助我 提前感谢 b $ b 我尝试过: select * from table where handwheel = isnull(isnull('',null),'NA'),这里''表示变量为空sir,i have using c# . i have familier with oracle.but littile knowledge in C# with sqlserver. i have used to nvl function in oracle in user input data variable.but isnull work with table columns is fien but not in variable.please help methanks in advanceWhat I have tried:select * from table where handwheel = isnull(isnull('',null),'NA') ,here '' means variable is blank推荐答案目前还不完全清楚你遇到了什么问题但是在SELECT语句的情况下:It's not entirely clear what you're having a problem with but in the case of your SELECT statement:SELECT fieldlist FROM table WHERE handwheel IS NULL OR handwheel = 'NA' 似乎适合您发布的内容。 尝试阅读有关SQL的文档下次服务器TSQL。seems to fit what you posted.Try reading the documentation on SQL Server TSQL next time. 这篇关于如何在C#中使用sqlserver来使用isnull条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-05 11:26
查看更多