visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Databases :: General :: updating a oracle database table from cgi code written in c++;


By: FiatLink Belgium  Date: 20/09/2003 00:00:00  English  Points: 20 Status: Answered
Quality : Excellent
Hi i have a strange problem.
i am trying to update a table from cgi code.

when i am saying update table set clumn name = 1 where ....blah blah , it's working
but when i ma saying updtae table set column name = a where .. blah blah
this a is a variable which has the value 1, this is not working

it's giving me ora00911 error , i have checked the error but it's not making me any sense.

Need help urgently
thanks


By: VGR Date: 20/09/2003 04:48:00 English  Type : Answer
use @a for a SQL user-defined variable
use your database layer (front-end language's) specific syntax for passing one of its variables "a" to the SQL statement

and don't forget the single quotes around casual string litterals
By: noriegaa Date: 03/06/2007 23:02:54 English  Type : Comment
yOU may need to cover the character to numeric. It looks like a datatype issue. Use TO_CHAR or TO_NUMBER to match the column datatype.

Do register to be able to answer

EContact
browser fav
page generated in 253.144030 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page