資料庫常見操作

2021-09-01 13:51:12 字數 290 閱讀 8614

一、

oracle使用步驟:

1、建立表空間(oracle的表是放在表空間中的,他沒有資料庫的概念)

以system/manager的身份登入plsql:

create tablespace *** datafile  'c:\oracle\product\data\***.dbf' size 10m autoextend on;

2、建立使用者,plsql中新建user,設定使用者名稱密碼和預設表空間為***,臨時表空間也可以不建,使用系統預設的temp,然後角色授權方面,可以授予最高許可權dba

MySQL資料庫常見操作

1.為所有使用者授權 grant all privileges on to 使用者名稱 identified by 密碼 2.資料庫基礎操作 1 登陸mysql資料庫 mysql u root p,回車後再輸入密碼即可 2 檢視所有資料庫 show databases 3 刪除某個資料庫 drop ...

MySQL 資料庫常見操作

建庫語句 create database plms2 default charset utf8 建表語句 帶引號不是英文 中文引號 drop table if exists zd test create table zd test rec id int 11 not null comment 行標識...

資料庫的常見操作

資料庫日期操作 1.查詢各學生的年齡,只按年份來算 mysql 寫法一 select sid,sname,year now year sage 年齡 from student mysql 寫法二 select sid,sname,date format now y date format sage,...