Languages

MySQL - how to create view only if not exists?

0 points
Asked by:
Dharman
518

How can I create a view only if it doesn't already exist in MySQL?

1 answer
0 points
Answered by:
Zachary
436

I found a solution:

We can use the following syntax so we won't get errors while trying to create a view that already exists:

Check the article below to see some practical examples:

0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join