batch mode problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Walleri

    #1

    batch mode problem

    I am having a problem with 2 sql statements in 1 batch file. Only the last
    statement executes. If I separate the statements into individual files they
    work fine.

    Are you only allowed 1 statement per file?

    Here is the contents of the batch file:
    insert into monlog (monlog_locno, monlog_custno, monlog_time,
    monlog_inputdat e, monlog_errno) select loc_no, loc_custno,
    (hour(now())*60 )+minute(now()) , now(), 200 from loc where
    loc_next+29<(ho ur(now())*60)+m inute(now())+30 and loc_errno>=200 and
    loc_errno<=249;
    update loc set loc_errno='250' where
    loc_next+29<(ho ur(now())*60)+m inute(now())+30 ;

    Can someone help me? I would like to keep the 2 statements in 1 batch file.

    Peter


Working...