ストアドmysql関数の作成に問題があります。 http://dev.mysql.com/doc/refman/5.0/en/create-procedure.html私のmysql-functionは動作しませんか?
create function bestalldavaror_7()
RETURNS int DETERMINISTIC
RETURN select sum(mangd) from bestalln where artikel_id = 7;
選択クエリ自体がうまく動作し、「mangdは」INT(11)の値(ようにテーブル内のすべてがある)である:まず、私はそれが非常に簡単公式のチュートリアル以下作ってみました。なぜこれがエラーを生成しない:
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 'select sum(mangd) from bestalln where artikel_id = 7' at line 3
テーブル構造を転記できますか? – Tom