04-14-2008 06:04 AM
04-15-2008 05:52 PM - edited 04-15-2008 05:52 PM
04-18-2008 02:21 AM
04-21-2008 08:38 AM - edited 04-21-2008 08:39 AM
This query Works for Hardcoded values to be replaced as is also shown in your example but when i am using any variable for example
UPDATE table
SET column = "+FileGlobals.Variable+"
WHERE predicates
FileGlobals.Variable gets the value from previous statement.
This Query gives the error saying one or more values not given.
Can i know a way where instead of hardcoded values i can use variable in the update query like in select query we do.
Thanks in Advance
04-21-2008 09:22 AM
04-21-2008 09:44 AM
You can't just place quote marks around the variable. You need to create the string by doing something like:
"UPDATE myTable SET myText = '" + FileGlobals.Variable + "' WHERE Key=1;"
04-21-2008 09:50 AM
Yes i did the same but still it gives me error.
Thanks
Shweta
04-21-2008 10:08 AM
04-21-2008 10:38 AM
04-21-2008 12:00 PM