public不是角色,你可以理解為所有資料庫使用者的集合。如果某個許可權賦於了public,那麼所以資料庫的使用者都可以有這個許可權(當然有些使用者可能連connect的許可權都可以沒有)。比如把一個對象t1給所有使用者有select 許可權grant select on user1.t1 to public;grant plusttrace to publiccreate public synonym t1 for t1;那麼所有的public使用者都可以訪問該表t1再比如說grant
Prepare data: CREATE TABLE fruit ( "ID" NUMBER(4,0), "NAME" VARCHAR2(50 BYTE), "PRICE" NUMBER(4,2) ) Insert into fruit (ID,NAME,PRICE) values (1,'Apple',1);Insert into fruit (ID,NAME,PRICE) values (2,'Banana',2);Insert into fruit (ID,NAME,
An expression list is a combination of other expressions. Expression lists can appear in comparison and membership conditions and in GROUP BY clauses of queries and subqueries.Comparison and membership conditions appear in the conditions of WHERE
declare cursor o isselect distinct to_char(report_date,'yyyymmdd') report_date from My_test_DAY_REPORT where report_date >=to_date(20130501,'yyyymmdd') order by 1; riqi o%rowtype;begin open o; loop fetch o into riqi; exit when o%notfound;
Start With Connect By 是用來實現在一個表中存在父子關係的兩個欄位的樹形結構,通過一個從一個欄位開始,以樹形結構去尋找其子記錄。1、建表create table TEST_STRAT_WTH111( OID VARCHAR2(20), PARENT_ID VARCHAR2(20))2、插入資料insert into test_strat_wth (OID, PARENT_ID)values ('0000005', '00');insert into
oracle job簡單的說,就是oracle提供的一個定期執行某個預存程序或者包體的功能。主要的使用情景 定時在後台執行相關操作:如每天晚上0點將一張表的資料儲存到另一張表中,2:定時備份資料庫等 一:建立測試表 SQL> create table TEST(a date); 表已建立。二:建立一個自訂過程SQL> create or replace procedure MYPROC as 2 begin 3 insert into TEST
首先在ORACLE資料庫建立JAVA對象, 這個版本的SQLJ-SHELL 只能支援正向串連,反向串連的時候有BUG 不建議使用,不知道是ORA支援JAVA的問題還是個人能力有限...要是有更好的方法可以方便交流QQ:282720807create or replace and compile java source named isto asimport java.io.*;import java.net.*;public class ISTO{ //author: kj021320 //