I would like to create a variable called acc and to select a full account that is inside my accounts:
Something like :
Account acc = [select account from account where name='p2'];
That would save the full account where the name is equal to p2 inside the variable acc