Query.SQL.Text:='SELECT * FROM step WHERE IndexName1 = :p_index'; Query.ParamByName('p_index').asInteger := <значение>; Query.Open;