test sql by sprintf