You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# The left side with %s placement, says grab the 1st part of the Select variable, Current iteration of loop, with a space added for the variable for 'FROM (tablename)'.
# Here the %s triple string placement is to have no spaces. We call the Query, current iteration of the start number from the loop, and close the line with a "'".
print("GO")
# Execute each query instead of waiting for all of them to complete.
print()
# prints a blank line. I saw some crazy code to do this by other means, but since all I want is a blank line, this is way easier and fits the bill.
pstartNum = pstartNum - 1
# Once the 1st loop finishes, subtract 1 from the starting port number. Do this for each iteration, by sayin that variable is equal to -1 from it's current state. (Please note you will error if you start with a port number less than 100.)
exit
# stops the 100 loop, so I can copy and paste this into my SQL query window and get results.