Hocam aşağıda ki gibi denediniz mi

select * from siparisler where gun<'31'