Executing a script using ISQL

前端 未结 2 2033
夕颜
夕颜 2020-12-31 20:32

I\'m creating a simple isql script but it\'s not working and I need some help to find out whats wrong with it.
I need to connect to a database and execute a SQL file. Th

相关标签:
2条回答
  • 2020-12-31 20:55

    Append a semicolon to the end of the UPDATE statement:

    CONNECT 'localhost:C:\Monde\Servidor\db\monde.fdb' USER 'SYSDBA' PASSWORD 'masterkey';
    update usuario
    set senha = 'MYkWEn0kHLHHdm'
    where login = 'rose';
    
    0 讨论(0)
  • 2020-12-31 21:05

    Ok although it's an old question I found out how to do it, you just need to append de -q parameter, like this:

    isql.exe -q -i script.sql
    

    Source:

    iSQL Reference form Destructor.de

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