Question d’entretien chez QID

What are the differences between stored procedure and function?