In Microsoft Sql Server, there is a proc sys.sp_describe_first_result_set
which takes an arbitrary sql query string and returns data describing the types that would be in the result set, were it to be executed. Note, this is describing the results of a complex query, not a table. MSDN reference
Is there anything similar for Postgres?
I tried to do this by creating a stored procedure to create temperory view
then check information_schema.columns before droping the view.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With