Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Here's a query I tried and doesn't

Status
Not open for further replies.

ljCharlie

IS-IT--Management
Apr 21, 2003
397
US
Here's a query I tried and doesn't work for me.

UPDATE activities SET ljTime=19:00:00 WHERE actID=05052003

I have also tried this:

UPDATE activities SET ljTime=07:00:00 [PM] WHERE actID=05052003

But I still receive the error:
[txoov] ERROR 1064: You have an error in your SQL syntax near ':00:00 WHERE actID=05052003' at line 1

Please help!

Many thanks in advance!

ljCharlie
 
Code:
UPDATE activities 
   SET ljTime='19:00:00'  
 WHERE actID=05052003
 
Thanks! I guess I forgot about the quotes. I treated the Time as number intead of as string.

ljCharlie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top