kcwvc52 wrote:
Code: Select all
global dataid
put "UPDATE user SET blah = ' " & updateblah & " ' WHERE name = ' " & updatename &" ' " into tSQL
this works properly. makes much more sense now
If it's working now, it's probably coincidental.
You are now sending this to the DB engine:
UPDATE user SET blah = ' blah ' WHERE name = ' name '
Note the leading and trailing spaces around your variable values.
So, a) your 'blah' value is going to get inserted with leading and trailing spaces, and your 'name' value is only going to match if it has leading and trailing spaces.