上一个相关主题:加入查询 WHERE 子句
我收到此错误:
com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near '.'.
我的 SQL 语句:
SELECT products.id, products.name products.extended_description, products.catalogid, products.image1, products.image2, products.stock, products.price, manufacturer.manufacturer, products.weight
FROM products
JOIN manufacturer ON (products.manufacturer = manufacturer.id)
JOIN product_category ON (product_category.catalogid = products.catalogid)
JOIN category ON (category.id = product_category.id)
WHERE category.category_name = ?;
我在这里有什么问题?我的陈述在我看来是正确的......