MedVision ad

SQL update help (1 Viewer)

Joined
May 27, 2004
Messages
107
Gender
Male
HSC
2004
hey people could someone help me with this SQL string

it says there is a syntax error

("UPDATE PersonInfo SET (FirstName = '{1}'), (PhoneNum = '{2}'), (Number = '{3}'), (Adress = '{4}'), (Suburb = '{5}'), (Postcode = '{6}') Where (LastName = '{0}')", LastName, FirstName, PhoneNum, Number, Adress, Suburb, PostCode)

its all spelt properly and the connection to the db is correct
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
What are you using this SQL in? Could you describe your environment abit more?
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
I don't know how exactly you are using this or how the database is set up, so I'll just give suggestions;

Have you tried a smaller query to see if it works? Something just along the lines of "UPDATE PersonInfo SET Firstname='test' WHERE Lastname='testing' "
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top