我在关键字“订单”附近出现错误语法错误。
protected void btnSubmit_Click(object sender, EventArgs e)
{
SqlCommand cmd = new SqlCommand("Insert INTO Order (Cust_Num, Sale_Num) VALUES (@cust_num, @sale_num))", conn);
cmd.CommandType = CommandType.Text;
cmd.Parameters.AddWithValue("@cust_num", txtBxCustNum.Text);
cmd.Parameters.AddWithValue("@sale_num", txtBxSaleNum.Text);
conn.Open();
cmd.ExecuteNonQuery();
conn.Close();
}