View previous topic :: View next topic |
Author |
Message |
danm Intermediate
Joined: 29 Jun 2004 Posts: 170 Topics: 73
|
Posted: Wed Nov 22, 2006 12:31 pm Post subject: Sql query with host variable |
|
|
I have declared the host variables, then execute SQL query A (with the declared variable in the WHERE clause). I executed several more SQL queries, the re-execute SQL queery A again, but it failed with an SQL code -312. Usually I got -312 if a host variable is not declared. Any explanation? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Nov 22, 2006 2:56 pm Post subject: |
|
|
danm,
Is this a dynamic sql you are trying to execuete? If it is a dynamic sql then you need to prepare the SQL query A once again.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
|
|