千 千中元 Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-09 #1 不知道该怎么表达好了。 比如在edit1中输入一个姓名, 然后查询,因为可能输入笔误,或着记不清。。 where 姓名 like...????
千 千中元 Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-09 #3 to silly, 我是想让别人在Edit 中输入,在按button,查询。查询出的结果 like edit.text. 也就是动态的参数,‘千中元 ’太安静了
千 千中元 Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-09 #4 我想是 where name like ':inputname%' query1.parambyname('inputname').asstring:=edit1.text 现在在win2000下,也没法试验
我想是 where name like ':inputname%' query1.parambyname('inputname').asstring:=edit1.text 现在在win2000下,也没法试验
S silly Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-09 #5 或者 LikeString := edit1.text+'%'
M mfc Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-09 #6 如要找王某某,应为'王%' where NAME=:NAME query1.parambyname('NAME').asstring:=format('%s%%',[edit1.text]);
F fstao Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-09 #7 应该是这样的: query1.parambyname('inputname').asstring:='%'+edit1.text+'%'
A Athlon_Chen Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-09 #8 要找所有性名中有edit1.text的人 where people.name like :name query1.sql.paramentbyname('name').asstring:='%'+edit1.text+'%';
要找所有性名中有edit1.text的人 where people.name like :name query1.sql.paramentbyname('name').asstring:='%'+edit1.text+'%';
P Pipi. Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-09 #9 where name like :inputname || '%'
W wjs Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-09 #10 要找所有性名中有edit1.text的人 Query1.Active = False; Query1.Sql.Clear; Query1.Sql.Add('where people.name like :findname'); query1.sql.paramentbyname('findname').asstring:='%' + edit1.text + '%'; query1.Open;
要找所有性名中有edit1.text的人 Query1.Active = False; Query1.Sql.Clear; Query1.Sql.Add('where people.name like :findname'); query1.sql.paramentbyname('findname').asstring:='%' + edit1.text + '%'; query1.Open;
A arm Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-09 #11 对字符型应为 Query1.Active = False;Query1.Sql.Clear; Query1.Sql.Add('where people.name like :findname'); query1.sql.paramentbyname('findname').asstring:= ''''+'%' + edit1.text + '%'''; query1.Open;
对字符型应为 Query1.Active = False;Query1.Sql.Clear; Query1.Sql.Add('where people.name like :findname'); query1.sql.paramentbyname('findname').asstring:= ''''+'%' + edit1.text + '%'''; query1.Open;
Q qf0421 Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-11 #13 sql中'%'相当于DOS中的'*','_'相当于DOS中的'?', SQL中用了通配符后必须用LIKE,如: "select * from ... where name like :name" pas中: query1.parambyname('name').asstring:='%'+edit1.text+'%';
sql中'%'相当于DOS中的'*','_'相当于DOS中的'?', SQL中用了通配符后必须用LIKE,如: "select * from ... where name like :name" pas中: query1.parambyname('name').asstring:='%'+edit1.text+'%';