February 2, 2012 at 1:15 pm
What is the wrong in this query
insert into tbTasks_New( AssignedToId)
values('Employee')
where
Owner = 'Seema'
February 2, 2012 at 1:18 pm
a WHERE statement is only valid with a SELECT,UPDATE or DELETE command.
you can insert with either values, or a select statement.
insert into tbTasks_New( AssignedToId)
values('Employee')
--OR
insert into tbTasks_New( AssignedToId)
SELECT
Employee
FROM YOURTABLE
where
Owner = 'Seema'
Lowell
February 6, 2012 at 1:31 am
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply