你的程序传递给sql server 的是sql语句,也就是说所有语句都要翻译成为string<br>类型才可以让sql server 处理(包括其他任何sql数据库),所以<br>int 类型 要翻译成 string <br>date 也要 翻译成 string <br>比如<br>adodataset1.commandtext := 'select * from table1 where date = ' + datetostr(datevar);<br>adodataset1.commandtext := 'select * from table1 where id = ' + intTostr(iId);<br>当然string 类型就不用 转换了<br><br>给分吧,我还没有一分呢,我很回答了好多问题了