Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
SQL
insert into Attendance_Register(Break1_Start) values('04:55:28')where Employee_ID='2' and Date='22-05-2013' 


WHAT IS THE ERROR IN THIS COMMAND
Posted
Updated 22-May-13 1:43am
v2
Comments
[no name] 22-May-13 7:40am    
Why are you screaming and what is the error message?
geo thomas 22-May-13 7:41am    
Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'where'.
gvprabu 22-May-13 7:43am    
U need to do UPDATE Right then Why u used INSERT Statement for this...

1 solution

Hi,
For this U need to use UPDATE not INSERT
Check the Query....
SQL
UPDATE Attendance_Register SET Break1_Start='04:55:28' where Employee_ID='2' and Date='22-05-2013' 

Regards,
GVPrabu
 
Share this answer
 
Comments
geo thomas 23-May-13 1:16am    
tnq

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900