StandardError: An error has occurred, all later migrations canceled:
Mysql2::Error: You have an errorin your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax::Error: You have an error in your SQL syntax; check the manual that correspo
如果我在查询中在这个字符串前面手动添加一个0x,我将检索到我正在查找的结果,例如: SELECT a,b FROM mytable WHERE uuid =0x1628258DB0DD2F4D9D9D6BC0BF91D78652简单地将0x连接到字符串变量不起作用。很明显,但我确实试过了。
请帮忙:)谢谢你,马克