请各位帮忙看一下我更新数据库是出了什么问题
private void returnButton_Click(object sender, EventArgs e)
{
try
{
SqlConnection myConn = new SqlConnection();
myConn.Open();
if (SqlConn.OpenDbConnection(myConn))
{
string sqlString = "select * from test ";
SqlCommand myComm = new SqlCommand(sqlString, myConn);
SqlDataReader myReader = myComm.ExecuteReader();
myReader.Read();
while (myReader.Read())
{
SqlConnection myConn2 = new SqlConnection();
if (SqlConn.OpenDbConnection(myConn2))
{
string sqlString2 = "update test set Translation = null ";
SqlCommand myComm2 = new SqlCommand(sqlString2, myConn2);
myComm2.ExecuteNonQuery();