05 2019 档案

摘要:// SqlDbType转换为C#数据类型 public static Type SqlType2CsharpType(SqlDbType sqlType) { switch (sqlType) { case SqlDbType.BigInt: return typeof(Int64); case SqlDbType.Binary: ... 阅读全文
posted @ 2019-05-28 08:34 未风 阅读(1096) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2019-05-27 11:13 未风 阅读(765) 评论(0) 推荐(0) 编辑
摘要:1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断 复制代码 代码如下: select * from peoplewhere peopleId in (select peopleId from people group by peopleId having count (p 阅读全文
posted @ 2019-05-24 13:47 未风 阅读(7172) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示