整数変数を宣言しようとしていますが、それは機能しません。変数が宣言されています。SQL
DECLARE @count INT
SET @count = 5633
SELECT count(matchid)
FROM `matches`
WHERE id = @count
イムこのエラーを取得:
Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DECLARE @count INT
SET @count = 5633
が:)
あなたが最も役に立つと思った答えを**受け入れる**ことを覚えておいてください。 Stackoverflowへようこそ! –