我想做一个查询,语句是这样写的
adoquery1.SQL.Add('select storebill_no,dress_name,quantity,sum_price from store_inout_table where storebill_date>'+strtodate(edit1.text)+'and'+'storebill _date<'+strtodate(edit2.Text);
不知错在哪里运行不过去,还请指教
...全文
135打赏收藏
构成一个简单的SQL语句
我想做一个查询,语句是这样写的 adoquery1.SQL.Add('select storebill_no,dress_name,quantity,sum_price from store_inout_table where storebill_date>'+strtodate(edit1.text)+'and'+'storebill _date<'+strtodate(edit2.Text); 不知错在哪里运行不过去,还请指教
adoquery1.sql.add('select storebill_no,dress_name,quantity,sum_price from store_inout_table where storebill_date>'+''''+edit.text+''''+' and storebill_date<'+''''+edit2.text+'''');
adoquery1.SQL.Add('select storebill_no,dress_name,quantity,sum_price from store_inout_table where storebill_date>'''+edit1.text+''' and storebill _date<'''+edit2.Text + '''');