Wildcard problem? Can't write a "like" query
Wildcard problem? Simple to run like query interactively from the prompt in MySQL, such as "SELECT col FROM table WHERE col LIKE '%assign%';"
Try to run this same query via python:
sql_phrase = "SELECT col FROM table WHERE col LIKE '%%assign%%';"
cursor.
I get the error below. This seems to be something specific to using the wildcards around 'assign', can't search that string although it would be very helpful to do so. Is this a bug?
Traceback (most recent call last):
File "judge_who.py", line 33, in <module>
cursor.
File "/usr/local/
self.
File "/usr/local/
self.
File "/usr/local/
(self._rows, eof) = self._connectio
File "/usr/local/
rows = self._protocol.
File "/usr/local/
packet = sock.recv()
File "/usr/local/
raise errors.
mysql.connector
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: