摘要:
如上图,我们想查询出所有地区的数据,如果这样查询 select * from dict where parent_id=3 结果: ,肯定不是我们想要的所有子级数据 正确查询方式: with temp as ( select * from dict where parent_id=3 union a 阅读全文
摘要:
定义函数: CREATE FUNCTION [dbo].[GetAge] ( @BirthDay nvarchar(20) --生日 ) RETURNS varchar(20) AS BEGIN if(@BirthDay is NUlL or @BirthDay='') return ''; -- 阅读全文
摘要:
ref 就相当于 C++ 里面的指针 class Program { static void Main(string[] args) { int number = 50; Console.WriteLine("调用方法前 number 值:" + number); Function(number); 阅读全文
摘要:
目的:linq 使用时判断添加 where 条件 添加 ExpressionExtensions 类: using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; 阅读全文