我在这里的工作正在工作,但如果搜索 1 它显示 40 而不是 900 这是我的工作:
command.CommandType = CommandType.Text;
command.CommandText = ("SELECT * FROM Computation WHERE Transaction_ID LIKE '" + textBox1.Text.ToString() + "%'");
command.Connection = connection;
connection.Open();
var reader = command.ExecuteReader();
while (reader.Read())
{
textBox2.Text = (String.Format("{0000,0:N2}", Int32.Parse(reader["Total_Bill"].ToString())));
}
connection.Close();