C:\tmptypetest.sql setverifyoff select'1'fromdual; exit C:\tmpsqlplususername/password@server@test.sql"anystring" SQL*Plus:Release9.2.0.1.0-Productionon星期一8月613:37:122007 Copyright(c)1982,2002,OracleCorporation.Allrightsreserved. 连接
C:\tmp>type test.sql
set verify off
select '&1' from dual;
exit
C:\tmp>sqlplus username/password@server @test.sql "any string"
SQL*Plus: Release 9.2.0.1.0 - Production on 星期一 8月 6 13:37:12 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
连接到:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
'ANYSTRING'
--------------------
any string