本文介绍了T-SQL中的案例陈述?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 您如何使用案例陈述在SQL Server中转换我的if语句? ' 检查发票日期和截止日期如果table1.invoiceDate< = table2.dueDate然后'已交付' end if if table1.invoiceDate> = table2.dueDate then '延迟交货' end if if IF table2 .dueDate< = CONVERT(VARCHAR,GETDATE(),110)然后' 到期' 结束如果 please有人帮忙吗?解决方案 Hi how can I convert my if statement in SQL Server using case statment?'check nvoice date and due dateIF table1.invoiceDate <= table2.dueDate then'delivered'end ifif table1.invoiceDate >= table2.dueDate then'Late Delivery'end ifIF table2.dueDate <= CONVERT(VARCHAR,GETDATE(),110) then'on due'end ifplease anyone help? 解决方案 这篇关于T-SQL中的案例陈述?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-21 03:38