I have a table in sql server 2008 with some 11-columns and 11-rows
I have function where I fetch data from the data using fetchall() like:
def main():
cursor.execute("select * from [dbo].[mytable] where isActive=1 and IsDownloaded=0")
result = cursor.fetchall()
for row in result:
ConfigId =row[0]
pattern = row[1]
....
Here I can fetch all rows with this FOR loop,where as I want to use this same table in two programs to fetch only particular rows
fetching rows 1st-6th and last 11th row in one program and remaining 4 rows in another in other program.
How can I do that?