I need to pass a local temporary table to a function. But I got this error:
Cannot access temporary tables from within a function.
According to here, I need to create a user defined table type. But I could not get how to pass my table with using this. And my table has millions of row, so just sending it will not be good for me. Are there an way to reach a temp table from a function that I defined?