Tagged Questions
0
votes
2answers
98 views
How can I write SelectQuery for SELECT LAST_INSERT_ID()?
Is it possible to run the following query with SelectQuery ?
SELECT LAST_INSERT_ID();
I would do this with db_query(), but I'm finding a way to use the query builder.
$last_id = db_query("SELECT ...
0
votes
1answer
35 views
Check for field values to be unique when storing into the DB
I have a content type "Research assignment" which has several fields including the field "field_user" and "field_project".
I want to remove any old research assignments having the same user and ...