Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. udit99

    For loops in SQL

    Nope, we're using Sybase. I dont know if your solution would be applicable to Sybase but im sure it has cursors too.
  2. udit99

    For loops in SQL

    I want to iterate through a list of key values and run SQL in each iteration based on that value but im not sure how to use the for loop in SQL. Something like this: declare @test numeric(9) for @test in (134424,134423,134425) select count(*) from test_table where test_id=@test next

Part and Inventory Search