I am trying to read a single row from database:
This statement is working fine
stmt = conn->createStatement("SELECT * from Customer");
rs = stmt->executeQuery();
While this is showing Memory fault(coredump)
stmt->setSQL("SELECT * from :1");
stmt->setString(1,"Customer");
rs = stmt->executeQuery();
Aucun commentaire:
Enregistrer un commentaire