Model::insert(array)
Model::insertGetId(array)
$ob
$ob->save
foreach($arr as $k=->$v)
删: Model:where()->delete()
改: Model:where()->update(array())
$ob = Xxx::where()->first()
$ob -> 字段名 = 值;
...
$ob ->save();
查:
where();
select();
orderBy();
groupBy();
limit();
offset()
distinct()
first()
get()
join()
distinct()
原文地址:https://www.cnblogs.com/chenliuxiao/p/9262520.html
时间: 2024-10-31 08:41:52