One of my New Year's Resolutions is to start writing not only about #SQLmacros. Failed today.😀But 363 attempts are still left 😅
New blog post: What else can you see in the #CBO trace about #SQLmacro expansion?
-- @OracleDatabase#sqlmacro
create function generate_series( "start" in int, "stop" in int ) return varchar2 SQL_MACRO(TABLE) as
begin
return 'select to_number(column_value) as generate_series from xmltable('''||"start"||' to '||"stop"||''')';
end;
/