03 2019 档案
mysql 表字段部分替换
摘要:update user set `ph` = REPLACE(`ph`,'shenji.osnt.me','60.210.113.147:555'); 阅读全文
posted @ 2019-03-31 22:00 baraka 阅读(261) 评论(0) 推荐(0)
sql随笔
摘要:select c1.`pid` ,count(*) as numfrom `user_contact` as c1where c1.`uid` in(select a2.`user_id` as num from `order_orderlistrow` as a1 INNER JOIN `orde 阅读全文
posted @ 2019-03-29 17:04 baraka 阅读(127) 评论(0) 推荐(0)
fastadmin 后台管理 时间戳字段使用
摘要:数据库样式 int 11 后台add.html: 阅读全文
posted @ 2019-03-28 10:33 baraka 阅读(4071) 评论(0) 推荐(0)
查询优化随笔
摘要:查询接口调用时,会存在多表关联和数据处理逻辑,这块导致查询速度非常慢。 之前对redis认识存在误区,redis的真正意义并不是单纯地将mysql的数据在缓存里存一份,而是简化数据库操作的逻辑 阅读全文
posted @ 2019-03-23 10:16 baraka 阅读(145) 评论(0) 推荐(0)
Hbuilder连接苹果手机
摘要:最简单的连接方法 1 手机电脑连接 usb 2 pc下载iTunes 3 信任电脑,手机信任设备(设置 》通用 》设备管理--》信任) 4 连接成功 阅读全文
posted @ 2019-03-22 15:35 baraka 阅读(2201) 评论(0) 推荐(0)
composer安装Laravel
摘要:Laravel框架版本对PHP的要求如下: 5.6 PHP 7.1.3 或更高版本。 5.1 5.2 PHP 5.5.9 或更高版本。 4.2 PHP 5.4 或更高版本。 4.1 PHP 5.3.7 或更高版本。 下载:github.com/laravel/laravel 直接下载的是最新版本,可 阅读全文
posted @ 2019-03-22 11:13 baraka 阅读(665) 评论(0) 推荐(0)
php取上个月月初和月末时间戳
摘要:$thismonth = date('m');$thisyear = date('Y');if ($thismonth == 1) { $lastmonth = 12; $lastyear = $thisyear - 1;} else { $lastmonth = $thismonth - 1; $ 阅读全文
posted @ 2019-03-21 15:03 baraka 阅读(778) 评论(0) 推荐(0)
fastadmin 后台view data-source关联报500错误问题
摘要:data-source 关联模型通过id关联被关联表的name字段,没有name字段就报500 阅读全文
posted @ 2019-03-20 03:18 baraka 阅读(1562) 评论(2) 推荐(0)
京东宙斯平台使用方法(accesstoken,appkey,appsecret参数和SDK的获取)
摘要:1.注册成为开发者 链接:https://dev.jd.com/ 2.创建应用 3.获取appsrecet和appkey,SDK(获取) 新建应用之后在左边应用证书栏位可以查看到appkey,appsrecet,下载对应应用的sdk保存到本地。 4.必须要写好回调的URL用于接收京东方回传的code 阅读全文
posted @ 2019-03-18 15:54 baraka 阅读(3361) 评论(0) 推荐(0)
fastadmin添加定时任务
摘要:安装定时任务插件后 需要在crontab -e 中添加一条记录 阅读全文
posted @ 2019-03-12 16:41 baraka 阅读(4781) 评论(0) 推荐(0)
linux定时任务
摘要:crontab -e 编辑crontab服务文件 * * * * * /www/wwwroot/dai_ling_mei_mall/shop_count.sh 阅读全文
posted @ 2019-03-12 15:26 baraka 阅读(204) 评论(0) 推荐(0)
技术域
摘要:c++ 前端: mfc qt已过时 基于windows SDK 10开发 GuiLite:全平台ui框架:https://gitee.com/mirrors/GuiLite 案例:https://gitee.com/idea4good/GuiLiteSamples 开发者:https://gitee 阅读全文
posted @ 2019-03-09 14:47 baraka 阅读(232) 评论(0) 推荐(0)
IOS div上下滑动效果
摘要:内容放在div中 div加样式:width: 100%;height: 100%;z-index: 70;overflow: auto; 阅读全文
posted @ 2019-03-06 17:20 baraka 阅读(197) 评论(0) 推荐(0)
mysql根据时间统计数据语句
摘要:select FROM_UNIXTIME(`createtime`, '%Y年%m月%d日')as retm,count(*) as num from `user` GROUP BY retm select FROM_UNIXTIME(`pay_tm`, '%Y/%m/%d::')as retm,s 阅读全文
posted @ 2019-03-02 14:38 baraka 阅读(591) 评论(0) 推荐(0)
MySQL DELETE语句和TRUNCATE TABLE语句的区别
摘要:MySQL DELETE语句和TRUNCATE TABLE语句功能相似,但是二者究竟有何区别呢? DELETE可以按条件删除表中数据。 在没有条件时,DELETE FROM table1 (成功返回条数)或TRUNCATE TABLE table1(成功返回0) 都是清空表。 DELETE FROM 阅读全文
posted @ 2019-03-01 16:01 baraka 阅读(514) 评论(0) 推荐(0)