D:\Documents and Settings\yubao>set sqlpath=c:\sql--设置变量
D:\Documents and Settings\yubao>set sqlpath--查看变量
sqlpath=c:\sql
D:\Documents and Settings\yubao>sqlplus fuyou/fuyou
SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 7月 24 17:36:58 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> @3.sql
SYSDATE
--------------
24-7月 -10
SQL>
注意:set sqlpath这句等号两边不能有空格
unix 下:setenv SQLPATH /home/rmenon/mysqlscripts