str_sql := Format('select * from OrderBill where BillNo between %s and %s', [QuotedStr(edit1.Text), QuotedStr(edit2.Text)]);
hks554488 回答得很好了。希望意思没理解错