Let $k$ be a commutative ring with total quotient ring $K$, and let $A$ be a commutative $k$-algebra such that the multiplication map $A \otimes_k A \longrightarrow A$ is an isomorphism. Must EDIT: Assume also that $k \longrightarrow A$ is injective. Then: Must $A$ be isomorphic to a subring$k$-subalgebra of $K$? If necessary, assume also that $k$ is an integral domain and/or is of characteristic zero.
Conversely: For which $k$-algebras $A$ contained in $K$ is the multiplication map $A \otimes_k A \longrightarrow A$ an isomorphism? Equivalently, for which $k$-algebras $A$ contained in $K$ is $A \otimes_k A$ $k$-torsion-free?