MariaDB pl/sql 'Функция не существует'
Я использую
MariaDB 10.5.6-MariaDB
с участием
InnoDB 10.5.6
и каждый раз, когда я пытаюсь сделать выбор или что-то еще в блоке pl / sql, он говорит: "Функция не существует". Что я делаю неправильно? Есть ли библиотека, которую необходимо получить перед использованием pl / sql? Это не имело бы смысла.
Это работает ( само по себе, вне начала / конца), и я получаю результат: 94
select count(1) from information_schema.all_plugins;
Это не работает
BEGIN
select count(1) from information_schema.all_plugins;
END;
/
Ошибка:
Error starting at line : 1 in command -
BEGIN
select count(1) from information_schema.all_plugins;
END;
Error report -
FUNCTION count does not exist
Это тоже не работает:
BEGIN
declare rowCount decimal;
select count(1) into @rowCount from information_schema.all_plugins;
END;
/
Ошибка:
Error starting at line : 1 in command -
BEGIN
declare rowCount decimal;
select count(1) into @rowCount from information_schema.all_plugins;
END;
Error report -
FUNCTION count does not exist
Это тоже не работает
BEGIN
select 'hello world';
END;
/
Ошибка:
Error starting at line : 1 in command -
BEGIN
select 'hello world';
END;
Error report -
FUNCTION 'hello does not exist
И из клиента CLI
MariaDB [(none)]> delimiter //
MariaDB [(none)]> begin
-> select 'hello';
-> end;
-> //
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'select 'hello';
end' at line 2
MariaDB [(none)]> begin
-> select "hello";
-> end;
-> //
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'select "hello";
end' at line 2
MariaDB [(none)]> begin
-> select 'hello';
-> end
-> //
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'select 'hello';
end' at line 2
MariaDB [(none)]> begin
-> select "hello";
-> end
-> //
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'select "hello";
end' at line 2