“慢生活”不是懒惰,放慢速度不是拖延时间,而是让我们在生活中寻找到平衡。网站首页程序人生
webman-查詢構造器-刪除
发布时间:2022-02-06 22:38:33作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
實例: public function index(Request $request)
{
ini_set('memory_limit','4096M');
//刪除
Db::table('ecms_news')->where('id', '>',
webman-查詢構造器-自增 & 自减
发布时间:2022-02-06 21:39:59作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
實例: public function index(Request $request)
{
ini_set('memory_limit','4096M');
//自增、自減方法都至少接收一个参数:需要修改的列。第二个参
webman-查詢構造器-更新、更新或新增
发布时间:2022-02-06 20:28:28作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
實例: public function index(Request $request)
{
ini_set('memory_limit','4096M');
//更新
$affected = Db::table('ecms_news')
webman-查詢構造器-自增id與postgresql的序列
发布时间:2022-02-06 20:13:08作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
實例: public function index(Request $request)
{
ini_set('memory_limit','4096M');
$data=(Array)Db::table('ecms_news')->first();
un
webman-查詢構造器-插入
发布时间:2022-02-06 19:06:42作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
實例: public function index(Request $request)
{
ini_set('memory_limit','4096M');
$row=(Array)Db::table('ecms_news')->selectRaw("count(*)