sp_qry.Close; sp_qry.SQL.Clear; sp_qry.SQL.Add('select * from item_info where item_clsno='+quotedstr(sp_lb.KeyValue)); sp_qry.Open; 用quotedstr()函数不用去算''''个数