Cheers Rob I figured it now 😃
Thanks loads for the help....
Cheers
Rob wrote:
You can't insert with a where clause. Inserting is adding, and you can't add a row to an existing row. You need to update the row.
I'm assuming that your table is something like this:
team_id, staff_id, leader
And you currently have some rows in there:
1, 1, bob
2, 3, joe
3, 2, frank
And now you want to change the leader of staff_id 3's row. You'd do this:
update team set (leader='john') where staff_id = 3;
If you have a brand new team that you are inserting information for you need to insert it all:
insert into team values (4,4,'john');