From: Amy on
For some reason this code is failing with the error "not all variables
bound"

oraparse $cursor "UPDATE my_table SET col1=:col1, col2=:col2 where
my_dev = 'xyz'

orabindexec $cursor :col1 1 :col2 2

what am I doing wrong? Need help on this asap. It is so simple and
yet will not work!
From: Andreas Leitgeb on
Amy <agrabham(a)globitech.com> wrote:
> For some reason this code is failing with the error "not all variables
> bound"
> oraparse $cursor "UPDATE my_table SET col1=:col1, col2=:col2 where
> my_dev = 'xyz'
> orabindexec $cursor :col1 1 :col2 2
> what am I doing wrong? Need help on this asap. It is so simple and
> yet will not work!

Just guessing: omit the colons:
orabindexec $cursor col1 1 col2 2

Did it work?
From: Andreas Leitgeb on
Amy <agrabham(a)globitech.com> wrote:
> For some reason this code is failing with the error "not all variables
> bound"
> oraparse $cursor "UPDATE my_table SET col1=:col1, col2=:col2 where
> my_dev = 'xyz'
> orabindexec $cursor :col1 1 :col2 2
> what am I doing wrong? Need help on this asap. It is so simple and
> yet will not work!

Alternative blind guess: the double-quote in the oraparse line isn't
closed after 'xyz'.
From: Gerald W. Lester on
Amy wrote:
> For some reason this code is failing with the error "not all variables
> bound"
>
> oraparse $cursor "UPDATE my_table SET col1=:col1, col2=:col2 where
> my_dev = 'xyz'


I assume that really is:

oraparse $cursor {
UPDATE my_table
SET col1 = :col1,
col2 = :col2
WHERE my_dev = 'xyz'
}

If not, then it should.

> orabindexec $cursor :col1 1 :col2 2
>
> what am I doing wrong? Need help on this asap. It is so simple and
> yet will not work!

That is what I see.


--
+------------------------------------------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
 | 
Pages: 1
Prev: tk scrollbar command
Next: Mac OS clipboard help