About 345,000 results
Open links in new tab
  1. When to use views in MySQL? - Database Administrators Stack …

    When creating tables from multiple joins for use in analysis, when is it preferred to use views versus creating a new table? One reason that I would prefer to use views is that the database …

  2. How to get mysql view definitions? - Database Administrators …

    Mar 23, 2015 · Show create view viewName does not display correctly formatted text. How can I get the correctly-formatted SQL? For example, I created a view like create view v1 as select * …

  3. mysql - In creating view use SQL Security definer or invoker ...

    Jun 6, 2013 · You deny permissions on PrivateData to users, but create an account PrivateDataReader which has read-only access to the table. You can then create a view which …

  4. mysql - Modify DEFINER on Many Views - Database …

    You can use ALTER VIEW in conjunction with the information schema. You mentioned dumping it out to a text file, so perhaps something like this: SELECT CONCAT("ALTER …

  5. Best way to create a materialized view in MySQL - Database ...

    Feb 2, 2021 · Create an aggregation table with all the data necessary and then create triggers on the tables where the data comes from. Create a scheduler that periodically aggregates the …

  6. mysql - Grant permissions on views, deny select on tables

    I have a MySQL user and I want it to view ONLY the views I want and not any other table in the database. I've granted this user permissions only on certain views as following: GRANT …

  7. mysql - How do I get the execution plan for a view? - Database ...

    If you want mysql to use an index on field1 in select * from <view-name> where field1=10 then you have to keep the view really simple. No GROUP BY or UNION for example. I guess you …

  8. mysql - Views with parameters, is it possible? - Database ...

    Sep 9, 2017 · What you are asking for is a function returning a table and AFAIK, MySQL does not yet support this. If you want to use a view you must rephrase it so that the parameters are …

  9. MySQL: Granting permission for CREATE VIEW

    Sep 27, 2016 · I have found a similar problem in MySQL forum but the MySQL DOC reference link he mentioned in the solution seems like removed. So my question is how to solve this …

  10. How do I change the DEFINER of a VIEW in Mysql?

    This answer works for changing the definers of procedures and functions but does not change the definer of a View.