TextBox无法更新数据库
TextBox无法更新数据库 怎么不能更新数据库啊?? UserID(主键) UserPassword UserSort 001 123 System 002 321 User dataTable.Rows[0].Delete(); dataSet.AcceptChanges(); string deleteString="DELETE FROM UserManager WHERE UserID="+"001"; sqlCommand2=new SqlCommand(deleteString,sqlConnection); sqlDataAdapter.DeleteCommand=sqlCommand2; sqlDataAdapter.Update(dataSet,"UserManager"); |