How do I prompt input for database on command line?
问题 I need to prompt ENTER DATABASE NAME. But It doesn't and it still connects. What database does it connects to? It says "CONNECTED TO " Here's the batch code. @echo off sqlplus &username/&password@&db ECHO About to exit. timeout t/ 30 :pause 回答1: Ampersand ( & ) is used for SQL*Plus substitution variables. You are supplying it on the Windows command line, where it means something else; when you exit from the client you'll see something like: 'username' is not recognized as an internal or