Hello
I’m new to using Oracle and Oracle TOAD. So, bear with me here.
I got this sql statement of chosen fields that keeps causing ORA errors like the following below. I need to be able to assign this sql as a string to the following variable name - strSQL. Also, in the WHERE clause, there is another variable name cKEY_SEQ, that contains the row number of the record choosen in the grid. The variable content in - strSQL, will be passed to a VB Property (as String) and on to a VB CommandText to be executed. Could someone help me with the syntax. I never use dealt with Oracle and just don’t how to do this. Thanks in advance for your time.
ORA-00933: SQL COMMAND NOT PROPERLY ENDED.
ORA-01756 : QUOTED STRING NOT PROPERLY TERMINATED
*THIS IS MY FIRST ATTEMPT AT SETTING UP THE SQL STATEMENT.*strSQL = "UPDATE MY_DB_ENVIRONMENTS " & _
" VB_APP_NAME = " & cVB_APP_NAME & ", " & _
" TUX_USER = " & cTUX_USER & ", " & _
"WHERE KEY_SEQ = " & cKEY_SEQ
" VB_APP_NAME = " & “:” & cVB_APP_NAME & ", " & _
“WHERE(MY_DB_ENVIRONMENTS.KEY_SEQ =” & “:” & cKEY_SEQ & “)”
I need help desparatetly with this problem. I’m sending two methods on how I set up the sql’s. Not sure which is right.
Kevin --------------
*My company softwares of choice are – VB.NET, Visual Studio.NET, Oracle 10g, Tuxedo, PL/SQL.*****"SET MY_ICON_NAME = " & cCITRIX_ICON_NAME & “, " & _” TUX_DOMAIN = " & cTUX_DOMAIN & ", " & _
" TUXEDO_URL = " & cTUXEDO_URL & " " & _
THIS IS MY SECOND ATTEMPT AT SETTING UP THE SQL STATEMENT.
strSQL = "UPDATE MY_DB_ENVIRONMENTS " & _
"SET MY_ICON_NAME = " & “:” & cCITRIX_ICON_NAME & “, " & _” MY_USER = " & “:” & cTUX_USER & ", " & _
" MY_URL = " & “:” & cTUXEDO_URL & " " & _