delphi 中的sql语句问题
查询语句如下: select distinct type from store where name = "five"
在tquery控件的sql语句中随便我我怎么写,都出现这个错误:
“参数不足,期待是1”
我的写法有:sql.Text:='select distinct type from store where name ="five";'; 或者是
sql.Add('select distinct type ');
sql.Add('from store ') ;
sql.add('where name = "five"');
为什么“ where name ="five";”这句有问题呢?
那该怎么写那?