I found that if $f(x)=ax^2+bx+c(a,b,c\in\mathbb{Z},a\neq0)$ always form a pefect square number for all $x\in\mathbb{Z}$,Then there must exists $s,t\in\mathbb{Z}$ so that $f(x)=(sx+t)^2$,but I cannot prove it.
Since $f(0)=c$ is a pefect square,there exists $t^2=c$. Then consider any prime $p|t$,$f(p)=ap^2+bp+t^2=n^2$,so $p|n$,$p^2|n^2$.Because $p^2|t^2$,there must be $p|b$ for all $p|t$,so $t|b$,It should be $t|b$ since I hope b=2st,but I get stuck here. What's more ,by consider $b=\frac{f(1)-f(-1)}{2}$ and perfect square module 4,I can prove b is a even number.