Sign in to follow this  
Followers 0
Danteamatos

SQL writing statement

2 posts in this topic

Hi,
I need a code to write in SQL only when the variable changes its value. Can someone help me?

Thanks

Share this post


Link to post
Share on other sites

use one shot (rising edge). depending on programming language such constructs may already be available. if not, it is easy to create using something like this

if monitored_variable<>monitored_variable_prev then
     ; here we can do something once...
endif
monitored_variable_prev := monitored_variable

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0