delphi中表示字符串一般在单引号之间,在C++BUILD中有个查询是这样的:
"select * from animals where name like '%"+inputstring+"%'"
请问,在DELPHI中怎么表示上面这个查询?
注意:其中inputstring是个string类型的变量。
"select * from animals where name like '%"+inputstring+"%'"
请问,在DELPHI中怎么表示上面这个查询?
注意:其中inputstring是个string类型的变量。
编译无法通过,可能是他疏忽了^o^
QuotedStr('%'+inputstring+'%')