我是 c# 初学者,希望能在这里得到帮助。我没有使用 SQL Server,而只是在 c# 中输入了一个查询,如下所示:
SqlCommand custcmd = new SqlCommand("SELECT customer.customerid, warehouse.warehouseNo, warehouse.qty_goods, warehouse.qty_slack, warehouse.std_weight, (qty_goods+qty_slack)*std_weight/1000 AS Total
FROM Customer
INNER JOIN warehouse WHERE customer.customerid BETWEEN" + "textbox1.text" + "AND" + "textbox2.text", myconnection)
显示错误“WHERE 附近的语法不正确”有人可以评论和帮助吗?
预先感谢