Update the value of a field in database by 1 using codeigniter

Viewed 45727

I want to implement a SQL statement using codeigniter active record.

UPDATE tags SET usage = usage+1 WHERE tag="java";

How can I implement this using Codeigniter active records?

Regards

3 Answers
Related