I would like to use global variables for rlike refinement.

Dear all.

To narrow down the rlike, you can write, for example
However, we also wanted to be more flexible in how we narrow down the search.

Startdatetime := '2023-02-10T12:00:00.000';

if Startdatetime rlike '^2023-02-10' then true; else false; end if;

For example, can I use rlike with global variables as in the attached protocol?
If anyone knows how to do this, it would be appreciated if you could share!

​​​​​​​