C# 连SQL的简单代码
来源:百度知道 编辑:UC知道 时间:2024/05/22 08:16:51
using Date;
using Date.SqlCenir;
SqlConnection conn = new SqlConnection("连数据库的名字和服务器的名字,账号和密码");
conn.Open();
SqlCommand cmd = new SqlCommand(SQL语句,conn);
cmd.E 什么开头的
conn.Close();
UC知道是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度知道 编辑:UC知道 时间:2024/05/22 08:16:51
using Date;
using Date.SqlCenir;
SqlConnection conn = new SqlConnection("连数据库的名字和服务器的名字,账号和密码");
conn.Open();
SqlCommand cmd = new SqlCommand(SQL语句,conn);
cmd.E 什么开头的
conn.Close();