select DateAndTime=convert(char(10),DateAndTime,120)
from Photo_info
group by convert(char(10),DateAndTime,120)改用其它语句可以了~
谁进来接分????