Create view for user authentication : Matadata « Command MySQL « SQL / MySQL






Create view for user authentication

    
mysql>
mysql> CREATE   OR REPLACE VIEW USER_AUTHS
    ->         (GRANTOR, GRANTEE, PRIVILEGE, WITHGRANTOPT) AS
    -> SELECT   'UNKNOWN', UPPER(GRANTEE), PRIVILEGE_TYPE, IS_GRANTABLE
    -> FROM     INFORMATION_SCHEMA.USER_PRIVILEGES
    -> ;
Query OK, 0 rows affected (0.00 sec)

mysql>

   
    
    
    
  








Related examples in the same category

1.Create view for base table and temporary table
2.Create view for columns
3.Create view for view information from INFORMATION_SCHEMA.VIEWS
4.Create view for column information
5.Create view for database authentication
6.Create view on table Privileges
7.Create view for Column Privileges