CodeIgniter — вставка активной записи, если она новая, или обновление дубликата.Php

Кемеровские программисты php общаются здесь
Anonymous
CodeIgniter — вставка активной записи, если она новая, или обновление дубликата.

Сообщение Anonymous »


Is it possible to do an active record query in CodeIgniter that will update an existing record if one already exists or insert if it doesnt, for the given key?

I understand this could be done by first querying to find an existing record, but I'm seeking the most efficient approach.


Источник: https://stackoverflow.com/questions/293 ... -duplicate

Вернуться в «Php»