I am trying to retrieve data from sql through python with the code:
query = (\"SELECT stuff FROM TABLE WHERE name like %%(this_name)s%\") result = pd.read_sq
Consider concatenating the wildcard operator, %, to passed in value:
%
query = ("SELECT stuff FROM TABLE WHERE name LIKE %(this_name)s") result = pd.read_sql(query,con=cnx, params={'this_name': '%'+ some_name +'%'})