Why this code returns nothing?
ip = '10.113.205.55'
cursor.execute("Select * from tablename WHERE ip like '%s' "), ip
result = cursor.fetchall()
print result
when i use the code below it works:
cursor.execute("Select * from tablename where ip like '10.113.205.55' ")
result = cursor.fetchall()
print result