“慢生活”不是懒惰,放慢速度不是拖延时间,而是让我们在生活中寻找到平衡。网站首页程序人生
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(*)
webman-查詢構造器-offset,limit的用法
发布时间:2022-02-06 13:11:48作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
實例: public function index(Request $request)
{
ini_set('memory_limit','4096M');
//offset / limit
$data= Db::table('ecms_news')
webman-查詢構造器-groupBy與having的用法
发布时间:2022-02-05 13:01:28作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
實例: public function index(Request $request)
{
ini_set('memory_limit','4096M');
//orderBy
$data = Db::table(
webman-查詢構造器-orderBy,随机排序的用法
发布时间:2022-02-05 12:32:09作者:雪饮
![[!--pagekey--]](/e/data/images/notimg.gif)
實例: public function index(Request $request)
{
ini_set('memory_limit','4096M');
//orderBy
$data= Db::table('ecms_news')