I mentioned when grant statements take into effect in Sql Server, MySql, and Oracle here.
I found out recently that there are some implementation differences when you grant only delete permission on a table to a user. MySql and Sql Server do this the same way, whereas Oracle is different.
Suppose you have:
1. Table t1: create table t1 (c1 int);
2. User TestLogin. The only permission of this TestLogin is
delete on t1.
In all 3 database platforms, TestLogin can find out what columns t1 has by default, using either
desc t1
or
sp_columns t1
In both Sql Server and MySql, the only thing you can do is:
delete from t1;
which essentially wipes out the whole table. You can do the same thing in Oracle.
However, if you do:
…
[Read more]