Return value from sql script to shell script

前端 未结 2 1112
小蘑菇
小蘑菇 2020-12-06 07:16

I have shell script that calls the following sql script:

     INSERT INTO SEMANTIC.COUNT_STATISTICS (...);
     UPDATE SEMANTIC.COUNT_STATISTICS 
     SET PR         


        
2条回答
  •  盖世英雄少女心
    2020-12-06 07:37

    A bash example with the use of a bash-function (note! database OS-authentication "/")

    #!/bin/bash
    
    get_count () {
        sqlplus -s / <

提交回复
热议问题