Get data from PostgreSQL function to java

前端 未结 1 803
梦如初夏
梦如初夏 2021-01-26 15:50

I have written a simple function in PostgreSQL database. From my JAVA source code I am calling this function like

SELECT getData(\'act         


        
相关标签:
1条回答
  • 2021-01-26 16:37

    As your function returns a result set you should be using select * from getdata('active').

    Don't put calls to set returning functions into the select list.

    SELECT usr.username 
    FROM cust_invoice_index as inv
     JOIN (SELECT * FROM getdata('active')) as usr ON usr.userid=inv.userid_edit
    
    0 讨论(0)
提交回复
热议问题