摘要:
通常数据库连接字符串为:Database=dbname;Data Source=192.168.1.1;Port=3306;User Id=root;Password=****;Charset=utf8;TreatTinyAsBoolean=false; 其中:Server,host, data s 阅读全文
摘要:
1.表中有id和name 两个字段,查询出name重复的所有数据 1 select * from xi a where (a.username) in (select username from xi group by username having count(*) > 1) 2、查询出所有数据进 阅读全文
摘要:
WITH RECURSIVE result ( id, GoodsTypeName, parentid) AS ( SELECT id, GoodsTypeName, parentid FROM goodstype WHERE id = 2 UNION ALL SELECT i.id, i.Good 阅读全文
摘要:
新建一个类,实现IEqualityComparer接口。注意GetHashCode方法的实现,只有HashCode相同才会去比较 public class Compare:IEqualityComparer<Student> { public bool Equals(Student x,Studen 阅读全文