I'm using below code
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $resource = $objectManager->get('Magento\Framework\App\ResourceConnection'); $connection = $resource->getConnection(); $select = $connection->select() ->from( ['ce' => 'customer_entity'] ); $data = $connection->fetchAll($select);
It's working fine. It returns all customer fields. I would like to select only First Name, Last Name & Email.
Instead of select(), which function we need to use & how?