Code:
UPDATE lin2world.dbo.pledge SET ruler_id = '<new_leaders_charid>' WHERE [name] = '<clan_name>'
Obviously, change <new_leaders_charid> to the char ID you want to be the new leader of the clan and <clan_name> to the clan name.
Note: Leave the ' ' and [ ] there.