Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
字符串值 = L"'Bob, and Tom's', 1, '2013-03-19'";
我试图在 cpp 中解析这个语句,但它仍然有错误。这是 SQL 语句。它是不同的''和“。
我想知道解析不在 SQLengine 中的查询语句是否困难或危险?
没有针对您正在使用的数据库引擎的精确 SQL 语法和强大的解析技术,很难解析 SQL 语句。您尝试做的任何其他事情都会在解析能力上出现问题,因此在提供实用价值的能力上也会出现问题。
是的,如果你有足够的决心,你可以在 C++ 中做到这一点。我见过很少有这么坚定的人。你问这个问题的事实非常强烈地暗示了你在哪个阵营。