我正在(Microsoft) Server 2008表上创建一个约束。我有两列数据类型不同。一个列在任何时候都必须为null,但不能同时为null(逻辑排它或/XOR)。我现在有一个工作表达式。(@a is null or @b is null) and not (@a is null and @b is null)
我的问题是,是否有一种更简洁或更短的方法来编写这段代码?
遗留应用程序 MS SQLserver DB was used.Database is the existing MS Sqlserver and it is located OnPrem
以前执行的一些查询所花费的时间少于500 is,但现在却占用了2000 is在遗留应用程序中,我们使用了server.xml来配置数据源,而在新的应