05 2019 档案
摘要:// SqlDbType转换为C#数据类型 public static Type SqlType2CsharpType(SqlDbType sqlType) { switch (sqlType) { case SqlDbType.BigInt: return typeof(Int64); case SqlDbType.Binary: ...
阅读全文
摘要:1 using System; 2 using System.Data; 3 using System.Data.SqlClient; 4 5 namespace Northwind 6 { 7 class Program 8 { 9 static void Main(string[] args) 10 { 11 SqlConnection sqlConn = null; 1...
阅读全文
摘要:1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断 复制代码 代码如下: select * from peoplewhere peopleId in (select peopleId from people group by peopleId having count (p
阅读全文