customize

You are here

[Drupal-8] How to Handle Select, Update, Delete Database Operations in Drupal 8?

Error message

User error: Failed to connect to memcache server: localhost:11212 in dmemcache_object() (line 415 of /home/freedrup/public_html/demo/d7/sites/all/modules/memcache/dmemcache.inc).

In Drupal 8, the usage of database operations such as select, update and delete are slightly changed from Drupal 7. The db_query() is deprecated in Drupal 8. To fetch a field we can use :

Source: 
http://feeds.zyxware.com/~r/zyxware/~3/LRtKKV7xPP8/drupal-8-how-to-handle-select-update-delete-database-operations-in-drupal-8