尝试将数据插入表时出现此错误。这是我的查询
INSERT INTO client_requests(client_price_plan_id, request) VALUES
(
(SELECT @client_price_client_price_plans.id FROM client_price_plans
WHERE client_id = 1),
(SELECT COUNT(client_requests.id) FROM client_requests
JOIN client_price_plans
ON client_price_plans.client_id = 1
)+1
)
我的错在哪里。请帮助我
答案 0 :(得分:3)
将FROM client_requests
更改为FROM client_requests c