Write oracle statement in cmd command

Enter sqlplus username/password@localhost/database in the cmd command

For example, sqlplus scott/Admin518@localhost/ORCl can enter the oracle database

Then come out sql>, you can enter various statements
 
 
select * from all_tables WHERE owner='SCOTT' ;//Display all tables in scott
 
 

CREATE SEQUENCE "SCOTT"."seq2" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324067313&siteId=291194637