THE PURPOSE OF THIS SQL HOTVAMP
|
|
How this file can be used: learn a few things on its inner workings, then use it!
|
Best viewed listening to «Underneath Your Clothes» by Shakira
TEMPORARY : ALFA VERSION
This file has been uploaded because given the high amount of work it was too delayed. It is functional and the layout is definitive but I still have to add about 80 or 100 more queries on joins in the next days. Thank you for your understanding, I do all this alone!
If
you don't know what SQL is, probably you'd wonder why you should use this file.
But if you know what it is, this file is going to be one of your best friends. Certainly, it is not meant to meet the need of sql administrators or those of database analysts or designers; but it is definitely the best friend of webmasters who although do not deal with sql on a daily basis, they do deal with it from time to time: thence the need for them to keep well oiled the great deal of syntaxes it involves.
And the paradigm I was thinking of when conceiving a tool for this purpose, was the pianist paradigm.
A FEW GOLDEN RULES
- When you GRANT a set of privileges, the REVOKE process works fine and perfectly (that is, removes all the occurrencies) only as long as you revoke exactly in the same way you granted: the revoking statement must somewhat be the exact opposite of the granting process.
Thus if you granted naming a database you have to revoke naming that database too. If you granted on some columns and naming a table and a database, you do have to revoke naming those column and that table and that database... That is, granting in a detailed way and revoking in a wholesale way may not draw the consquences you expect (which arguably is the actual withdrawal of the assigned privileges).
You may want to consider storing fixed procedures/queries in order to grant and revoke specific sets of privileges: for each granting query there must be its matching revoking query.
For additional safety always peruse ther user table at least, and preferably also the tables_priv and columns_priv, to see whether you still have the user with that name and from that host lingering around as a record.
|
|