\setrandom pkrand 1 1000000 SELECT pk, c_c1 FROM wholeclass2tables WHERE pk = :pkrand;