L
L
linux20002012-02-03 16:37:00
MySQL
linux2000, 2012-02-03 16:37:00

mysql and global constant

There is a Mysql base, which has a large number of triggers. In some of them, you need to write data from a constant so that it is used in calculations for all calls to these triggers. How and where is it better to write it down. The easiest way is to write the value of the constant directly in the trigger, but if it changes, it is not desirable to rewrite the value in dozens of triggers.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SadGnome, 2012-02-04
@SadGnome

Write a function that will return the value of a constant. In this case, when changing the value, only this function will need to be changed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question