VFP中一个表单包含多个表

2024-11-14 11:36:29
推荐回答(1个)
回答1:

//下面使用MySql Connector/net提供的专用对象
  MySqlConnection mycon = new MySqlConnection(constr);
  mycon.Open();
  MySqlCommandmycmd = new MySqlCommand("select * from users", mycon);
  MySqlDataReader myreader = mycmd.ExecuteReader();
  while (myreader.Read())