Ticker

6/recent/ticker-posts

Header Ads Widget

Responsive Advertisement

SQL GRANT and REVOKE Command

 


SQL GRANT and REVOKE Command:

GRANT statement:

GRANT statement is used to give permission or grant privileges to a user account on the table and database.

REVOKE statement:

REVOKE statement is used to remove permission or remove privileges from a user account on the table and database.

 

Syntax:

GRANT privileges_names ON object TO user;

Syntax:

REVOKE privileges ON object FROM user;

 

Parameters Used:

·         Privileges_name:  These are the access rights or privileges granted to the user.

·         Object: It is the name of the database object or table to which permissions are being granted. In the case of granting privileges on a table, this would be the table name.

·         User: It is the name of the user to whom the privileges would be granted.

 

Example:

GRANT SELECT, INSERT, DELETE, UPDATE ON Customer TO 'Amit'@'localhost;

REVOKE SELECT, INSERT, DELETE, UPDATE ON Customer TO 'Amit'@'localhost;

 





आशा करते है कि हमारे द्वारा लिखी हुई इस Post को आप Like, Share and Comment करेंगे | और हमें Comment करके बताये की आपको ये Post कैसी लगी | इसी तरह की Post और News पाने के लिए हमारे सभी Social Media Channels को रेगुलर Follow करे| 


Thanks
Amar Digital World
(Always Ready To Digital Serve)

Post a Comment

0 Comments