0
I have this table:
idsession  name    num_objects
1          James        1
2          Laure        2    
3          Daniel       3

I want to update the table with a new record

2          Laure        4

How can I delete a old record and update a new record with a pl/pgsql function with parameter idsession?

Example: If idsession is in the table then delete old record and update the new. If idsession is not in the table only update the new record.

Kaushik Nayak
  • 30,772
  • 5
  • 32
  • 45
James
  • 97
  • 1
  • 1
  • 11

0 Answers0