1

Is it possible to run a trigger whenever a new row is inserted into lets say shipping_rate, and it will check column company within that row for a certain string. If that certain string is is there, I then want to perform an equation on column cost to change the current number. Is this feasible in MySQL?

1 Answer 1

2

Yes, it is entirely possible as trigger can do essentially anything to the database that a normal query could. You can read up on how to do that in official manual.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.