When does MySQL database view get updated?

1157380 pts.
Tags:
Database
MySQL
I currently have this view in MySQL:
CREATE VIEW blah AS
  SELECT columnA FROM tableA
But I need to see this specific view gets updated. How can I see that? Appreciate the help.
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

A view doesn’t get updated because a view doesn’t store any data.

A view is just a saved query, but what is actually stored is the query, not the data, so every time you query the view, you will be reading the data from the base table(s).  No need to update anything.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: