1,当心ISNULL函数对你的逻辑引起BUG 有人喜欢或者习惯于(并不代表我推荐,甚至这种写法没有任何好处)用ISNULL处理变量这种方式写查询 比如:select * from TestISNULL where name = ISNULL(@name,name) @name相当于传入到存储过程中的参数,如果@name为null, 相当于:select * from TestISNULL where name = name,看起来恒成立,是真的吗? 目的是在@name为null的时候,这个查询条…
Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. Note that it is the kth smallest element in the sorted order, not the kth distinct element. Example: matrix = [ [ 1, 5…