表里两个字段earth_no和child_no,想将他们联合起来查询
即假设earth_no='1-23',child_no='001'
现在edit中输入1-23-001,可以查到这条记录,输入1-23可以查到所有earth_no为1-23的记录sql.add('select * from record where ...... like :temp');
   parambyname('temp').asstring:='%'+keyEdit.Text+'%';
想请教的是where这里怎么写?
...where earth_no+'-'+child_no like...
这样好象不行
不知道知道字符怎么连接,还有就是单引号的问题
搞晕了,请大家指导一下:)