SQL查询中的内存错误(coredump)

时间:2017-09-28 05:57:53

标签: c++ oracle c++11 oracle-sqldeveloper

我正在尝试从数据库中读取一行:

此声明工作正常

stmt = conn->createStatement("SELECT * from Customer");
rs = stmt->executeQuery();

虽然显示Memory fault(coredump)

 stmt->setSQL("SELECT * from :1");
 stmt->setString(1,"Customer");
 rs = stmt->executeQuery();

0 个答案:

没有答案