Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
SELECT collname FROM pg_collation WHERE collname ILIKE 'ru%'; create or replace function ab(p1 text, p2 text) returns text language plpgsql stable security definer as $$ declare s text := upper(p1); begin raise notice 'p1: %', collation for (p1); return s; end; $$; select ab('Бородач_приедет_в_гости eng', session_user); select ab('Бородач_приедет_в_гости eng' collate "C", session_user); select ab('Бородач_приедет_в_гости eng' collate "ru-x-icu", session_user); select ab('Бородач_приедет_в_гости eng' collate "ru-x-icu", 'session_user'); select session_user, * from pg_database where datname = current_catalog;

Stuck with a problem? Got Error? Ask AI support!

Copy Clear