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.
我在 Windows 平台 Ansi C 工作。我想将 mysql 数据库附加到我的 c 程序中。请指导我如何使它成为可能。
这是一个建立连接并执行查询的工作示例。
ANSI (ISO) C 不进行网络连接,因此根据定义,您不能在 ANSI C 中进行 MySQL 连接。您至少必须迁移到 POSIX。所以,答案是,“这是不可能的”。