Synonyms:
Create private synonyms
create synonymep for scott.emp
Create shared synonyms
Create public synonym ep for scott.emp
view
Modify the view:
Create or replace view view name
As
check sentence
It is also possible to delete data
Views can be read-only
With read only
Views can store query results from multiple tables
sequence:
Create sequence sequence name
Minvalue first number
Increment by self-increment
Maxvalue maximum number (nomanvalue cancels the maximum number)
Nocache buffer cancellation
Cycle cycle
View sequence auto increment
Select sequence name.nextvalfrom dual
tablespace
Oracle data tables are stored in tablespaces
No permission on tablespace
Grant unlimited tablespace to xx
Temporary table space: For example, sorting and indexing will use temporary table space and release it immediately after use
grant tablespace
Alter user username default tablespace tablespace name
Use tablespace permissions:
Grant unlimited tablespace to username
drop tablespace
Drop tablespace tablespace name
Drop the tablespace that holds the data
Droptablespace tablespace name INCLUDING CONTENTS
Sqlserver database
Use select* into new table name from table name
Create tablespace:
createtablespace mytb
datafile 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\mytb.DBF'
size 30m