Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax to Add and Delete Access

Status
Not open for further replies.

madeline1

Programmer
Jun 13, 2007
8
US
what is the correct syntax to grant just add and delete to a column in a table? I am using MySQL.

It is not Grant all? So I am not sure how to specify just the add and delete to a particular column within a table.

Any advice is appreciated!
 
You can specify individual actions for the user:
Code:
GRANT INSERT, DELETE ON 'x' TO 'username';

Though You'll likely also want to let the user SELECT, otherwise they'll only be able to INSERT and DELETE, but not view what they've inserted afterward.

Also you might want to read the "GRANT" entry in the MYSQL Online manual:






----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top