2019年8月26日

(常用)C#获取sql查询所返回的字段值

摘要: qlConnection conn = new SqlConnection(conn_str); conn.Open(); string sql = "select used_number from pipeline_Number"; SqlCommand cmd = new SqlCommand(sql, conn); SqlDataReader rdr = cmd.ExecuteReader( 阅读全文

posted @ 2019-08-26 17:36 PER10 阅读(4469) 评论(0) 推荐(0) 编辑

(常用)C# 连接数据库进行增删查改的基本模板

摘要: string conn_str = @"Server=(local); database = YJ_Database; User id = sa; Password = 123456"; SqlConnection conn = new SqlConnection(conn_str); conn.Open(); string... 阅读全文

posted @ 2019-08-26 12:40 PER10 阅读(252) 评论(0) 推荐(0) 编辑

SQLServer数据库添加主键和主键自增

摘要: https://jingyan.baidu.com/article/91f5db1b11dda21c7f05e3d3.html 阅读全文

posted @ 2019-08-26 12:37 PER10 阅读(3415) 评论(2) 推荐(0) 编辑

导航