SQL 建新使用者等

2021-08-28 20:30:36 字數 773 閱讀 1525

1、進入sysdba裡邊,輸入「conn / as sysdba」,

2、建立使用者scott,口令是tiger,輸入「create user scott identified by tiger」,

3、給scott授權,輸入「grant connect,resource to scott;」,

4、進入scott使用者裡邊,輸入「conn scott/tiger」,

5、執行後接的指令碼,輸入「@?/sqlpuls/demo/demobld.sql」。

6、在使用者scott裡邊檢索個表,輸入「select * from tab」。

select * from tab; 檢視表裡的資訊

conn 切換使用者 conn / as sysdba 返回系統裡邊

select * from emp where comm is null

從emp列中選出comm中null的

流程 :先from table 資料來源,再select。

oracle建新使用者

有時需要資料遷移建乙個新的不如直接建個新使用者,不用時把使用者刪掉 許可權一定要夠 create user zs identified bypassword zs為使用者名稱,passaw為mima grant create session tozs grant connect resource t...

mysql 建新使用者

1 建立使用者 create user username host identfied by password username 使用者名稱 host 指定在哪個主機上可以登入,本機可用localhost,通配所有遠端主機 password 使用者登入密碼 2 授權 grant all privil...

建立新使用者

新增新使用者 允許本地 ip 訪問 localhost,127.0.0.1 create user test localhost identified by 123456 允許外網 ip 訪問 create user test identified by 123456 為新使用者分配許可權 授予使用...