What is the difference between pg_query and pg_execute?

Asked

Viewed 230 times

9

I’m new to Postgre and I see pg_query and pg_execute in the application I’m working on, however I can’t see the difference between the two. I have to make an insertion and I’m not sure which to use.

What is the difference between the two and which is the best or most agile?

1 answer

7


  • There is some difference in performance between them ?

  • 1

    I believe that the pg_query has a slightly better performance, which does not justify its use, because this minimum gain will be lost in the treatment of the variable before sending the.

  • 1

    It was a question of curiosity thank you very much

Browser other questions tagged

You are not signed in. Login or sign up in order to post.