laravel 数据模型方法

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 -> 字段名 = 值;

扫描二维码关注公众号,回复: 1865064 查看本文章

...

$ob ->save();

查: 

where();

select();

orderBy();

groupBy();

limit();

offset()

distinct()

first()

get()

join()

distinct()

猜你喜欢

转载自www.cnblogs.com/chenliuxiao/p/9262520.html
今日推荐