mysql - SQL Updating TImeStamp To Now() -


I am checking the database for members ending their application

I I am: update members SET enabled = 0 where now ()> = Time

It runs every 30 seconds It was running for the first time in 10 seconds but I did not know that this was an issue, so I made it 30 seconds. This is the only thing that I'm running and my timestamp goes from the time I set up and sets it to execute the SQL command. Is there something that I'm doing wrong?

Is not this the expected result? You now check the timestamp compared to () (now always) more than time) and you always update the timestamp Timestamp is also updated, so you get the execution time.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -