I can see tables and can write a SQL query via sql developer (23.1) connected to a postgresql database. I try to execute an anonymous block to display a variable in the output script :
DO $$
DECLARE
c_200 CONSTANT INTEGER := 200;
BEGIN
RAISE NOTICE 'Constante : %', c_200;
END;
$$;
After execution, more lines then the code iself... :
Erreur commençant à la ligne: 1 de la commande -
DO $$
Rapport d'erreur -
ERREUR: chaîne entre guillemets dollars non terminée sur ou près de « $$ »
Position : 4
Erreur commençant à la ligne: 2 de la commande -
DECLARE
c_200 CONSTANT INTEGER := 200;
BEGIN
RAISE NOTICE 'Constante : %', c_200;
END;
$$;
Rapport d'erreur -
Unterminated dollar quote started at position 92 in SQL DECLARE
c_200 CONSTANT INTEGER := 200;
BEGIN
RAISE NOTICE 'Constante : %', c_200;
END;
$$;. Expected terminating $$
''Constante : %''