Exercise 110.33.7. Give an example of an affine scheme $(X, {\mathcal O}_ X)$ and an open $U \subset X$ such that $(U, {\mathcal O}_ X|U)$ is not an affine scheme.

In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the toolbar).