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.
我正在使用mysql c api,我想知道,有什么方法可以让我知道我的插入查询失败,因为我试图为主键插入重复值。我知道我可以检索现有条目并将其与我想要插入的值进行比较,但如果我通过 mysql_query 的返回值来了解它会更好。
提前致谢。