摘要:
using System.Data.SqlClient; string ucode = ""; //开始 生成编号 SqlConnection conn = new SqlConnection("server=.;database=Data0504;user=sa;pwd=lyb0629"); Sq... 阅读全文
摘要:
using System.Data.SqlClient; Console.Write("请输入要删除的编号:"); string ucode = Console.ReadLine(); SqlConnection conn = new SqlConnection("server=.;database=Data0504;user=sa;pwd=123;"); SqlCommand cmd = ... 阅读全文
摘要:
using System.Data.SqlClient;//引用此命名空间 //编写连接字符串 string sql = "server=.;database=Data0504;user=sa;pwd=123;"; //创建数据库连接对象 SqlConnection conn = new SqlCo 阅读全文