2014-05-06 00:48:48 +08:00
|
|
|
create table pub(a int);
|
|
|
|
create table prv(a int);
|
2014-05-08 22:32:26 +08:00
|
|
|
GRANT SELECT ON TABLE pub TO public;
|
|
|
|
REVOKE SELECT ON TABLE prv FROM public;
|
2014-05-06 00:48:48 +08:00
|
|
|
SELECT CDB_UserTables() ORDER BY 1;
|
|
|
|
SELECT 'all',CDB_UserTables('all') ORDER BY 2;
|
|
|
|
SELECT 'public',CDB_UserTables('public') ORDER BY 2;
|
|
|
|
SELECT 'private',CDB_UserTables('private') ORDER BY 2;
|
|
|
|
SELECT '--unsupported--',CDB_UserTables('--unsupported--') ORDER BY 2;
|
|
|
|
drop table pub;
|
|
|
|
drop table prv;
|