V
V
Vasily Terkin2014-08-18 11:15:22
PostgreSQL
Vasily Terkin, 2014-08-18 11:15:22

How to write a trigger in Postgresql?

UPD The more information I find out, the better I understand what exactly I want to get. Therefore, I decided to clarify the question by changing some details.
We have a database that has two tables:
a8c7e2a8ea384059ae125420839fc705.png
We create another table:
a1ba61302f4244c4ab658d36809905cf.png
In this table id_player= tourney_hand_player_statistics.id_palyer,
and the cell tourney_hand_player_range.range_p_3betmust contain all unique values lookup_hole_cards.hole_cards​​under the following conditions:
tourney_hand_player_statistics.id_gametype = 1and
tourney_hand_player_statistics.flg_p_3bet = true.
The question is: how to create a trigger that would update the value of a cell lookup_hole_cards.hole_cardswhen it is accessed?
Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question