摘要:
1、查询出重复的数据,Id只保留其中一个 SELECT MIN(Id) Id,Name FROM dbo.City GROUP BY Name HAVING COUNT(1) > 1 2、然后使用删除时Join上面的表 DELETE C FROM City C JOIN ( SELECT MIN(I 阅读全文
摘要:
没有两个人是一样的 No two persons are the same 一个人不能控制另外一个人 One person can not change another person 有效果比有道理更重要 Usefulness is more important 只有由感官经验塑造出来的世界,没有绝 阅读全文
摘要:
DECLARE @Sql NVARCHAR(max)DECLARE @dbname NVARCHAR(50)SET @dbname='GuangDong';--设置数据库名称 SET @Sql='USE ['+@dbname+'] ALTER DATABASE ['+@dbname+'] SET R 阅读全文
摘要:
if (System.Diagnostics.Debugger.IsAttached) { var path = Environment.CurrentDirectory.Substring(0, Environment.CurrentDirectory.LastIndexOf("\\bin\\") 阅读全文