L loveflying88 Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-15 #1 adoquery的sql属性要求是tstrings, 而我现在是string, 所以出错, 我该怎么解决。
H hawkx Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-15 #2 用TStringList,是继承自TStrings的。 另外,你可以用adoquery.sql.add(string)来写入sql
D desertsmoke Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-15 #3 var sqlstr:string; begin sqlstr := 'select * from tablename'; adoquery.Close; adoquery.SQL.Clear; adoquery.SQL.Add(sqlstr); ... end;
var sqlstr:string; begin sqlstr := 'select * from tablename'; adoquery.Close; adoquery.SQL.Clear; adoquery.SQL.Add(sqlstr); ... end;
N netke Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-15 #4 也可用: adoquery.sql.Text:=String变量
D dz2050 Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-15 #5 凑凑热闹: adoquery.sql.addstrings(tstrings);
K KOKS Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-15 #6 SQL:= 'select * from tablename'; adoquery.Close; adoquery.SQL.Clear; adoquery.SQL.Add(SQL);
Y yanghai0437 Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-15 #7 用adoquery.sql.add(string)来写入sql
K KOKS Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-15 #8 SQL:= 'select * from tablename'; adoquery.Close; adoquery.SQL.Clear; adoquery.SQL.Add(SQL);