我的问题是:
result = connection.execute(
"select id_number from Table where string like '_stringStart%' limit 1;")
给出错误:
query = query % escaped_args
TypeError: not enough arguments for format string
一个快速的谷歌说使用%%而不是%,但这也不起作用。我如何转义%,或者是否有其他方法可以查询以随机字母开头的字符串,而不是以某个序列开头?
https://stackoverflow.com/questions/10935854
复制相似问题