1.Oracle中表名是可以重複的,只要在不用的用戶下
/*
使用這句話的前提是,該用戶下有相應的權限
如果該用戶下有相同的表就會出現混淆,到底查詢的是哪個表?
所以查詢時是需要帶上用戶名
*/
select * from userName.tableName;
--替代方案:建同義詞
create public synonym table_name for user.table_name;
2.Oracle是以用戶來管理表的
3.Oracle中查詢所有表的信息
select * from all_tab_comments;
4.創建用戶
--創建用戶:create user 用戶名 identified by 密碼
create user test identified by 123456;
5.授權
grant select on tableName to userName;