- 博客(7)
- 收藏
- 关注
原创 php 生成小程序圆形二维码、方形二维码,并且上传oss
<?phpnamespace app\api\controller;use app\api\controller\BaseController;use think\Db;use app\common\model\Goods as GoodsModel;use app\common\model\GoodsQrcode as GoodsQrcodeModel;use app\api\...
2018-07-20 17:49:54 6017
原创 key 取余
create table p_key( id int primary key auto_increment, name varchar(32))engine=myisam charset=utf8 partition by key(id) partitions 5;
2018-06-13 16:45:23 165
原创 hash (取余) 分区
create table 表名( `id` int auto_increment, `name` varchar(50), `birthday` date primary key(`id`,`birthday`))engine=myisam charset=utf8partition by hash(month(birthdy)) partitions 12; //将区...
2018-06-13 16:20:04 1473
原创 list 分区
create table 表名( `id` int(11) auto_increment, `name` varchar(50), `store_id` int, //关联id primary key(`id`,`store_id`) //复合索引)engine=myis...
2018-06-13 15:42:45 497
原创 range(范围)分区
create table 表名( `id` int(11) auto_increment, `name` varchar(50), `birthday` date, primary key(`id`,`birthday`) //复合索引)engine=myisam charset=utf8partition by range (month(b...
2018-06-13 15:36:03 1222
原创 弹幕客户端
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <style type="text/css"> *{
2018-05-03 08:28:37 169
原创 弹幕服务器
<?php //创建websocket服务器对象,监听0.0.0.0:9502端口 $ws = new swoole_websocket_server("0.0.0.0",9502); //监听WebSocket连接打开事件 $ws->on('open', function ($ws, $request) { var_dump($request->fd,...
2018-05-03 08:27:38 741
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人