How can I issue a single command from the command line through sql plus?

后端 未结 6 1314
半阙折子戏
半阙折子戏 2020-12-02 12:03

Using SQL Plus, you can run a script with the \"@\" operator from the command line, as in:

c:\\>sqlplus username/password@databasename @\         


        
6条回答
  •  失恋的感觉
    2020-12-02 12:46

    Have you tried something like this?

    sqlplus username/password@database < "EXECUTE some_proc /"
    

    Seems like in UNIX you can do:

    sqlplus username/password@database <

    But I'm not sure what the windows equivalent of that would be.

提交回复
热议问题