如果你的head30是Integer类型的话,应该这么写
CommandText := 'select * from portconfg where head = ' + IntToStr(head30);
如果你的head30是Double类型的话,应该这么写
CommandText := 'select * from portconfg where head = ' + FloatToStr(head30);
....................
类型不匹配而已
同意:fshell
如果你的head30是Integer类型的话,应该这么写
CommandText := 'select * from portconfg where head = ' + IntToStr(head30);
如果你的head30是Double类型的话,应该这么写
CommandText := 'select * from portconfg where head = ' + FloatToStr(head30);
....................
类型不匹配而已