Execute the * .sql file in SQL * PLUS

xiaoxiao2021-03-06  42

In C: / Receive an A.SQL file file content: Drop table yangbc2.aa; create table yangbc2.aa as select id from yangbc2.a1 where id = '001'; save file, execute @ in SQL * Plus Path: / filename, 即: @c: /a.sql; drop table yangbc2.aa * error is located in Chapter 1: ORA-00942: Table or view does not exist table created.

SQL> SELECT * from AA;

ID ---------- 001

SQL> Select * from yangbc2.aa;

ID ---------- 001

转载请注明原文地址:https://www.9cbs.com/read-60314.html

New Post(0)