Oracle Database import .sql file by command prompt

后端 未结 4 2125
再見小時候
再見小時候 2021-02-20 06:53

I want to import .sql file in Oracle by command prompt so please tell me that command to import .sql file in oracle in MYSQL I am using it like this

mysql -u          


        
相关标签:
4条回答
  • 2021-02-20 06:59

    In Oracle, to run a script (.sql) you use SQLPLUS command line utility.

    c:\> sqlplus user_name/user_password@connect_string @path\your_sql.sql
    
    0 讨论(0)
  • 2021-02-20 07:12

    Try to use sqlplus:

      sqlplus user/password@connect @/Nisarg/NEult/softpoint.sql
    

    More information.

    0 讨论(0)
  • 2021-02-20 07:23

    It's worth knowing you can have a space between @ and the input file, which enables the use of the tab key auto completion.

    0 讨论(0)
  • 2021-02-20 07:25

    You can also export the SQLPATH environment variable (colon separated list of directories) for common scripts you don't want to bang out/tab complete the full path every time.

    0 讨论(0)
提交回复
热议问题