我是Delphi的新手,并收到了以下代码(省略了一些不相关的部分),我正试图了解它的作用:
object SelectCosts: TIBQuery sql.Strings = ( 'SELECT * FROM costs ' 'WHERE code = :code') ParamData = < item DataType = ftUnknown Name = 'code' ParamType = ptUnknown end> end
DM_HRV.SelectCosts.ParamByName('part').Value := 1;
此参数“part”是否会改变所做的选择?换句话说:SQL查询是否自动更改为以下内容?
'SELECT * FROM costs ' 'WHERE code = :code' 'AND part = :part'