C#原代码(使用sql数据库)
最佳答案
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication21
{
public partial class Form1 : Form
{
SqlConnection Hxj;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
string s = "server=localhost;database=userdb;uid=sa;pwd=";
Hxj = new SqlConnection(s);
try