計算機科学のブログ

ほしい物リスト

SQL - SQLite - Python - セキュリティ - grant, select, insert, update, delete

Head First SQL ―頭とからだで覚えるSQLの基本Lynn Beighley(著)、 佐藤 直生(監訳)、 松永 多苗子(翻訳)、 オライリージャパンの 12章(セキュリティ - 資産の保護)、p.517(グレッグになってみよう)の解答を求めてみる。

schema4.sql

grant delete on job_listings to frank;
grant select on my_contacts to frank;

grant insert, update on greg_lists.* to jim;

grant select 
on my_contacts, profession, zip_code, status,
contact_interest, interests, contact_seeking, seeking
to joe;