标签: c++ oracle c++11 oracle-sqldeveloper
我正在尝试从数据库中读取一行:
此声明工作正常
stmt = conn->createStatement("SELECT * from Customer"); rs = stmt->executeQuery();
虽然显示Memory fault(coredump)
Memory fault(coredump)
stmt->setSQL("SELECT * from :1"); stmt->setString(1,"Customer"); rs = stmt->executeQuery();