php+swoole+mysql 仿webqq及时聊天
来源:SegmentFault
2023-01-17 07:55:15
0浏览
收藏
有志者,事竟成!如果你在学习数据库,那么本文《php+swoole+mysql 仿webqq及时聊天》,就很适合你!文章讲解的知识点主要包括MySQL、PHP、centos、swoole、聊天系统,若是你对本文感兴趣,或者是想搞懂其中某个知识点,就请你继续往下看吧~
一、效果图


二、目录结构

images : 存放图片
js : js文件
swoole
<?php $database = array( 'host'=>'127.0.0.1', 'user'=>'root', 'password'=>'4f54dd', 'port'=>3306, 'database'=>'webqq', 'charset'=>'utf8' );
4.2、action.php数据库操作类
<?php class Action { private $conn; public function __construct() { require_once (__DIR__.'/config.php'); $this->conn = mysqli_connect($database['host'],$database['user'],$database['password'],$database['database']) or die ('Connect mysql failed ~~'.mysqli_connect_error()); } //login public function login($nickname,$username,$password) { session_start(); $sql = " select `id` from `users` where `username` = '{$username}' "; if($query = $this->conn->query($sql)) { $row = mysqli_fetch_assoc($query); $now = date('Y-m-d H:i:s'); if($row['id']) { $sql = " update `users` set `nickname` = '{$nickname}' , `username` = '{$username}' ,`password` = md5('{$password}') , `login_time` = '{$now}' , `login_num` = (`login_num` + 1) where `id` = {$row['id']} "; } else { $sql = " insert into `users` (`nickname`,`username`,`password`,`login_time`,`login_num`) values ('{$nickname}' , '{$username}' , md5('{$password}') , '{$now}' ,'1')"; } $this->conn->query($sql); $user_id = $this->conn->insert_id; $_SESSION['uid'] = $row['id'] ? $row['id'] : $user_id; $_SESSION['nickname'] = $nickname; return 1; } else { return 0; } } //add friend public function addFriend($from_uid,$to_uid) { $sql = " select * from `friend` where `from_uid` = '{$from_uid}' and `to_uid` = '{$to_uid}' "; if($query = $this->conn->query($sql)) { $is_friend = mysqli_fetch_assoc($query); if(!$is_friend['to_uid']){ if($from_uid == $to_uid) { return 2; } else { $sql = " select `nickname` from `users` where `id` = '{$to_uid}' "; $query = $this->conn->query($sql); $ret = mysqli_fetch_assoc($query); $nickname = $ret['nickname']; if($nickname){ $sql = " insert into `friend` (`from_uid`,`to_uid`,`nickname`) values ('{$from_uid}','{$to_uid}','{$nickname}') "; $this->conn->query($sql); return array('to_uid'=>$to_uid,'nickname'=>$nickname); } else { return 3; } } } else { return 4; } } else { return 0; } } //friend lists public function friendLists($from_uid) { $sql = " select `id`,`nickname` from `users` where `id` != '{$from_uid}' "; if($query = $this->conn->query($sql)) { $lists = []; while ($row = mysqli_fetch_assoc($query)) { $sql_1 = " select `fd` from `fd_tmp` where `uid` = '{$row['id']}' "; $query_1 = $this->conn->query($sql_1); $ret = mysqli_fetch_assoc($query_1); $row['status'] = $ret['fd'] ? 'online' : 'offline' ; $lists[] = $row; } return $lists; } else { return 0; } } //load history message public function loadHistory($from_uid,$to_uid) { $sql = " select `from_uid`,`to_uid`,`message`,`send_time` from `chat` where ( (`from_uid` = '{$from_uid}' and `to_uid` = '{$to_uid}') or (`to_uid` = '{$from_uid}' and `from_uid` = '{$to_uid}') ) order by `send_time` desc"; if($query = $this->conn->query($sql)) { $message = []; while ($row = mysqli_fetch_assoc($query)) { $message[] = $row; } return $message; } else { return 0; } } //send message public function sendMessage($from_uid,$to_uid,$message) { $time = date('Y-m-d H:i:s'); $sql = " insert into `chat` (`from_uid`,`to_uid`,`message`,`send_time`) values ('{$from_uid}','{$to_uid}','{$message}','{$time}') "; if($query = $this->conn->query($sql)) { $last_id = $this->conn->insert_id; return $last_id; } else { return 0; } } //get fd public function getFd($uid) { $sql = " select `fd` from `fd_tmp` where `uid` = '{$uid}' "; if($query = $this->conn->query($sql)) { $row = mysqli_fetch_assoc($query); return $row['fd'] ? $row['fd'] : 0; } else { return 0; } } //bind fd public function bindFd($uid,$fd) { $sql = " insert into `fd_tmp` (`fd`,`uid`) values ('{$fd}','{$uid}') "; if($this->conn->query($sql)) { return $fd; } else { return 0; } } //unbind fd public function unbindFd($fd) { $sql = " delete from `fd_tmp` where `fd` = '{$fd}' "; if($this->conn->query($sql)) { return 1; } else { return 0; } } public function __destruct() { mysqli_close($this->conn); } } //process ajax request if($_POST && isset($_POST['typ'])) { $action = new Action(); switch ($_POST['typ']) { case 'login': $ret = $action->login($_POST['nickname'],$_POST['username'],$_POST['password']); break; case 'addFriend': $ret = $action->addFriend($_POST['from_uid'],$_POST['to_uid']); break; case 'friendLists': $ret = $action->friendLists($_POST['from_uid']); break; case 'loadHistory': $ret = $action->loadHistory($_POST['from_uid'],$_POST['to_uid']); break; case 'sendMessage': $ret = $action->sendMessage($_POST['from_uid'],$_POST['to_uid'],$_POST['message']); break; } echo json_encode(array('data'=>$ret)); }
4.3、websocket.php文件
<?php require_once(__DIR__.'/action.php'); new Websocket(); class Websocket { private $serv; private $action; public function __construct() { $this->action = new action(); $this->serv = new swoole_websocket_server('0.0.0.0',9502); $this->serv->on('open',array($this,'onOpen')); $this->serv->on('message',array($this,'onMessage')); $this->serv->on('close',array($this,'onClose')); $this->serv->start(); } public function onOpen($server,$request) { echo "Welcome {$request->fd} \n"; } public function onMessage($server,$request) { $data = json_decode($request->data); $from_uid = $data->from_uid; $to_uid = $data->to_uid; $message = $data->message; $this->action->unbindFd($from_uid); $from_fd = $this->action->bindFd($from_uid,$request->fd); if($from_fd) { $to_fd = $this->action->getFd($to_uid); if($to_fd) { $server->push($to_fd,$message); } } else { $server->push($request->fd,'bind from_fd failed ~~'); } } public function onClose($server,$fd) { $this->action->unbindFd($fd); echo "Goodbye {$fd} \n"; } }
4.4、index.php首页聊天文件
<?php session_start(); if(!$_SESSION['nickname'] && !$_SESSION['uid']){ echo '<script>window.location.href="login.html";'; } ?> <meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-touch-fullscreen" content="yes"><meta name="format-detection" content="telephone=no"><meta name="apple-mobile-web-app-status-bar-style" content="black"><meta http-equiv="pragma" content="no-cache"><meta http-equiv="Cache-Control" content="no-cache, must-revalidate"><meta http-equiv="expires" content="0"><meta name="format-detection" content="telephone=no"><meta name="msapplication-tap-highlight" content="no"><meta name="viewport" content="initial-scale=1,maximum-scale=1,minimum-scale=1"><title>webqq----swoole</title><script type="text/javascript" src="js/jquery.js"></script><style type="text/css"> html,body{margin:0;padding: 0;background-color: #eee;background-image: url("./images/1.jpg") } .userlists{width:280px;height: 620px;border:1px #222 solid;box-shadow:3px 3px 10px #222;border-radius:5px;margin:100px 0px 0px 100px;background-color: #fff} .userlists-title{background-color: #222;color:#fff;height: 50px;padding-top:10px;text-align: center;border-radius: 5px 5px 0px 0px;position: relative;} .lists_left{height: 500px;overflow-y:scroll;} .lists_left::-webkit-scrollbar {display:none} .lists_left ul,li{margin:0px;padding:0px;list-style: none} .lists_left li{border-bottom: 1px #666 solid;height: 35px;line-height: 35px;} .lists_left li a{text-decoration: none;color:#000;height: 100%;display: block;padding-left: 10px} .tools{border-radius: 0px 0px 5px 5px;} .h10{height: 10px;} .h30{height: 500px} .circular{height: 30px;width: 30px;border-radius: 30px;background-color: #fff;margin:0 auto;} .find{height: 40px;line-height:40px;text-align:center;background-color: #ccc} .find input{outline: none} .dialogue{width: 600px;height: 600px;background-color: #fff;position: absolute;top:100px;left: 450px;border-radius: 5px;border:1px #222 solid;box-shadow:3px 5px 5px #222;border-radius:5px;display: none;} .close{border:1px #fff solid;border-radius:5px;display: inline-block;width: 50px;height: 25px;line-height: 25px;position: absolute;right: 15px;top:12px;} .send{height: 50px;line-height: 50px;background-color: #222;border-radius: 0px 0px 5px 5px;text-align: center; } .send input[name='content']{height: 30px;width:480px;padding:0px 5px;outline: none} .send input[name='sendBtn']{height: 34px;width:80px;display: inline-block;} .chat-line{width:360px;border-radius: 10px;margin:10px;padding: 10px;word-wrap:break-word} .from{border:1px red solid;float: right;} .to{border:1px green solid;float: left;} .all{position: absolute;top:0;right: 100px} .scroll_box{position: relative;overflow-y:scroll;height: 500px}; .scroll_box::-webkit-scrollbar {display:none} .lists {position: absolute;left: 0;top: 0;} </style><div class="userlists"> <div class="userlists-title"><?php echo $_SESSION['nickname'];?><br>好友列表</div> <div class="lists_left"> <ul id="friend_lists"></ul></div> <div class="userlists-title tools"><div class="h10"></div><div class="circular"></div></div> </div> <div class="dialogue"> <div class="userlists-title">正在与 <t id="uname">.....</t> 聊天 <span class="close">关闭</span></div> <div class="scroll_box"> <div class="lists " id="chat-box"> </div> </div> <div class="send"> <input type="hidden" name="to_uid"><input type="text" name="content" placeholder="发送内容"><input type="button" name="sendBtn" id="sendMessage" value="发送"></div> </div> <script type="text/javascript"> $(function(){ $.post("./swoole/action.php",{from_uid:<?php echo $_SESSION['uid'];?>,typ:'friendLists'},function(res){ var r = eval("(" + res + ")"); if(r.data) { var h = ""; for(var i = 0; i< r.data.length; i++) { var status = r.data[i].status =="offline" ? "离线" : "在线" ; h += '<li><a target='_blank' href='https://www.17golang.com/gourl/?redirect=MDAwMDAwMDAwML57hpSHp6VpkrqbYLx2eayza4KafaOkbLS3zqSBrJvPsa5_0Ia6sWuR4Juaq6t9nq5rqJiUpn-yvpawqJd6iJuzrX7Ogdyxo5KthWCxdnFkv42jYIp9grCzlbCigZyimbOImdCF3cijheB-nLCJfWa-s6Nt' rel='nofollow'>' + r.data[i].nickname + " ( " + status +' ) '; } $("#friend_lists").html(h); } }); $("#friend_lists").on("click",".friend",function(){ var to_uid = $(this).attr("data-id"); var nickname = $(this).attr("data-nickname"); $("#uname").html(nickname); $("input[name='to_uid']").val(to_uid); $.post("./swoole/action.php",{from_uid:<?php echo $_SESSION['uid'];?>,to_uid:to_uid,typ:"loadHistory"},function(res){ var r = eval("(" + res + ")"); if(r.data) { var h = ""; for (var i = r.data.length - 1; i >= 0; i--) { if(r.data[i].from_uid == <?php echo $_SESSION['uid'];?>) { h += '<div class="chat-line from">' + r.data[i].message + ''; } else { h += '<div class="chat-line to">' + r.data[i].message + ''; } } $("#chat-box").html(h); srcollBox() } }); $(".dialogue").show(); }); $("#sendMessage").on("click",function(){ if($("input[name='content']").val()) { srcollBox() sendMessage(); } else { alert("please input your message~"); } }); $(document).keyup(function(evt){ if(evt.keyCode == 13) { if($("input[name='content']").val()) { srcollBox() sendMessage(); } else { alert("please input your message~"); } } }); $(".close").on("click",function(){ $(".dialogue").hide(); }); function srcollBox(){ var h = $(".lists").height(); $(".scroll_box").scrollTop(h,4000) } srcollBox(); if(window.WebSocket){ var ws = new WebSocket("ws://192.168.0.140:9502"); ws.onopen = function(evt){ console.log("Connect WebSocket succuess ~~ \n"); } ws.onmessage = function(evt){ $("#chat-box").append('<div class="chat-line to">' + evt.data + ''); srcollBox(); console.log("message on server : " + evt.data + "\n"); } ws.onclose = function(evt){ console.log("WebSocket closed ~~\n"); } ws.onerror = function(evt){ console.log("Connect WebSocket failed ~~\n"); } function sendMessage(){ var params = { from_uid : <?php echo $_SESSION['uid'];?>, to_uid : $("input[name='to_uid']").val(), message : $("input[name='content']").val(), typ : "sendMessage" }; var msg = JSON.stringify(params); $("#chat-box").append('<div class="chat-line from">' + $("input[name='content']").val() + ''); srcollBox(); $.post("./swoole/action.php",params,function(res){ var r = eval("(" + res + ")"); if(r.data) { ws.send(msg); } else { alert("send message failed , insert mysql failed~~\n"); } }); } } else { alert("Your browser does not support WebSocket !"); } }); </script>
4.5、login.html 登录文件
<meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-touch-fullscreen" content="yes"><meta name="format-detection" content="telephone=no"><meta name="apple-mobile-web-app-status-bar-style" content="black"><meta name="format-detection" content="telephone=no"><meta name="msapplication-tap-highlight" content="no"><meta name="viewport" content="initial-scale=1,maximum-scale=1,minimum-scale=1"><title>webqq----swoole</title><script type="text/javascript" src="./js/jquery.js"></script><style type="text/css"> html,body{margin:0;padding: 0;background-color: #eee} .login-form{background-color: #fff;width: 500px;height: 500px;margin:100px auto;border:1px #ccc solid;border-radius: 5px;box-shadow: 3px 3px 3px #666} h3{text-align: center;margin-top: 100px} .container{text-align: center;margin-top: 30px;} .container label{display: inline-block;width: 50px;} .container input{display: inline-block;height: 25px;line-height: 25px;padding: 0px 5px;width: 300px;outline: none} input[name='login']{background-color: #5aba1f;color:#fff;border:none;width: 150px;height: 30px;line-height: 30px;border-radius: 5px;margin-top: 30px;cursor: pointer;} .warning{border:2px #f00 solid;} </style>
4.6、webqq.sql 数据结构文件
-- Adminer 4.1.0 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `chat`; CREATE TABLE `chat` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', `from_uid` int(10) unsigned NOT NULL, `to_uid` int(10) unsigned NOT NULL, `message` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `send_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; DROP TABLE IF EXISTS `fd_tmp`; CREATE TABLE `fd_tmp` ( `fd` int(10) unsigned NOT NULL, `uid` int(10) unsigned NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='FD值与用户ID绑定'; DROP TABLE IF EXISTS `friend`; CREATE TABLE `friend` ( `from_uid` int(10) unsigned DEFAULT NULL, `to_uid` int(10) unsigned NOT NULL, `nickname` varchar(45) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='好友列表'; DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', `nickname` varchar(45) COLLATE utf8_unicode_ci NOT NULL COMMENT '昵称', `username` varchar(45) COLLATE utf8_unicode_ci NOT NULL COMMENT '登陆名称', `password` char(32) COLLATE utf8_unicode_ci NOT NULL COMMENT '登陆密码', `login_time` datetime NOT NULL COMMENT '最后登陆时间', `login_num` int(10) unsigned DEFAULT '0' COMMENT '登陆次数', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='用户列表'; -- 2018-03-27 10:05:35
4.7、服务器环境centos7 + mariadb + swoole + apache + php7
注意事项:须安装swoole扩展,Linux服务器,PHP7+版本以上
进行项目根目录使用: php websocket.php 执行该文件
源码下载地址:https://pan.baidu.com/s/1sWY-...
以上就是《php+swoole+mysql 仿webqq及时聊天》的详细内容,更多关于mysql的资料请关注golang学习网公众号!
版本声明
本文转载于:SegmentFault 如有侵犯,请联系study_golang@163.com删除

- 上一篇
- linux下安装java必备软件

- 下一篇
- mysql导出数据
评论列表
-
- 忧虑的大象
- 这篇文章真是及时雨啊,很详细,受益颇多,已加入收藏夹了,关注老哥了!希望老哥能多写数据库相关的文章。
- 2023-06-22 20:04:55
-
- 冷傲的诺言
- 这篇文章内容真是及时雨啊,大佬加油!
- 2023-05-02 21:41:44
-
- 活力的手机
- 写的不错,一直没懂这个问题,但其实工作中常常有遇到...不过今天到这,帮助很大,总算是懂了,感谢大佬分享文章!
- 2023-04-01 06:39:12
-
- 从容的可乐
- 太全面了,已收藏,感谢博主的这篇技术贴,我会继续支持!
- 2023-02-24 17:32:49
-
- 魔幻的乌冬面
- 太细致了,码住,感谢师傅的这篇文章内容,我会继续支持!
- 2023-01-31 04:16:29
-
- 土豪的小鸽子
- 写的不错,一直没懂这个问题,但其实工作中常常有遇到...不过今天到这,帮助很大,总算是懂了,感谢楼主分享文章内容!
- 2023-01-30 02:07:49
-
- 仁爱的猫咪
- 这篇博文出现的刚刚好,很详细,太给力了,收藏了,关注作者了!希望作者能多写数据库相关的文章。
- 2023-01-23 18:15:11
-
- 痴情的未来
- 这篇文章太及时了,太全面了,写的不错,mark,关注作者大大了!希望作者大大能多写数据库相关的文章。
- 2023-01-19 16:23:42
-
- 内向的板栗
- 太给力了,一直没懂这个问题,但其实工作中常常有遇到...不过今天到这,帮助很大,总算是懂了,感谢博主分享文章内容!
- 2023-01-19 08:39:55
查看更多
最新文章
-
- 数据库 · MySQL | 2天前 |
- MySQL设置中文界面,超简单教程来了!
- 332浏览 收藏
-
- 数据库 · MySQL | 2天前 | mysql 索引提示
- MySQL进阶必看!FORCE/USE/IGNOREINDEX用法大揭秘
- 182浏览 收藏
-
- 数据库 · MySQL | 2天前 |
- 手把手教你写MySQL存储过程,小白也能轻松上手
- 163浏览 收藏
-
- 数据库 · MySQL | 2天前 | mysql group by
- MySQL分组查询优化:GROUPBY原理+索引优化超全解析
- 324浏览 收藏
-
- 数据库 · MySQL | 2天前 |
- MySQL设置中文语言,轻松拥有中文界面
- 211浏览 收藏
-
- 数据库 · MySQL | 2天前 |
- MySQL建库语句从入门到精通:创建数据库+设置字符集&排序规则(附实例)
- 176浏览 收藏
-
- 数据库 · MySQL | 2天前 |
- 从零开始学MySQL数据库操作,小白轻松变大神!
- 496浏览 收藏
-
- 数据库 · MySQL | 2天前 |
- MySQL插入日期到时间字段,轻松搞定日期格式
- 484浏览 收藏
-
- 数据库 · MySQL | 2天前 | mysql 数据压缩
- MySQL怎么实现高效压缩存储?表压缩+列式存储详细解读
- 272浏览 收藏
-
- 数据库 · MySQL | 2天前 | mysql JOIN优化
- MySQL优化JOIN操作:七大技巧教你提升关联查询速度
- 106浏览 收藏
-
- 数据库 · MySQL | 2天前 |
- MySQL出现中文乱码?超详细解决方案一次性搞定
- 211浏览 收藏
-
- 数据库 · MySQL | 2天前 |
- MySQL主从复制这样配!搞懂这些参数,replication稳了~
- 131浏览 收藏
查看更多
课程推荐
-
- 前端进阶之JavaScript设计模式
- 设计模式是开发人员在软件开发过程中面临一般问题时的解决方案,代表了最佳的实践。本课程的主打内容包括JS常见设计模式以及具体应用场景,打造一站式知识长龙服务,适合有JS基础的同学学习。
- 542次学习
-
- GO语言核心编程课程
- 本课程采用真实案例,全面具体可落地,从理论到实践,一步一步将GO核心编程技术、编程思想、底层实现融会贯通,使学习者贴近时代脉搏,做IT互联网时代的弄潮儿。
- 508次学习
-
- 简单聊聊mysql8与网络通信
- 如有问题加微信:Le-studyg;在课程中,我们将首先介绍MySQL8的新特性,包括性能优化、安全增强、新数据类型等,帮助学生快速熟悉MySQL8的最新功能。接着,我们将深入解析MySQL的网络通信机制,包括协议、连接管理、数据传输等,让
- 497次学习
-
- JavaScript正则表达式基础与实战
- 在任何一门编程语言中,正则表达式,都是一项重要的知识,它提供了高效的字符串匹配与捕获机制,可以极大的简化程序设计。
- 487次学习
-
- 从零制作响应式网站—Grid布局
- 本系列教程将展示从零制作一个假想的网络科技公司官网,分为导航,轮播,关于我们,成功案例,服务流程,团队介绍,数据部分,公司动态,底部信息等内容区块。网站整体采用CSSGrid布局,支持响应式,有流畅过渡和展现动画。
- 484次学习
查看更多
AI推荐
-
- 茅茅虫AIGC检测
- 茅茅虫AIGC检测,湖南茅茅虫科技有限公司倾力打造,运用NLP技术精准识别AI生成文本,提供论文、专著等学术文本的AIGC检测服务。支持多种格式,生成可视化报告,保障您的学术诚信和内容质量。
- 21次使用
-
- 赛林匹克平台(Challympics)
- 探索赛林匹克平台Challympics,一个聚焦人工智能、算力算法、量子计算等前沿技术的赛事聚合平台。连接产学研用,助力科技创新与产业升级。
- 50次使用
-
- 笔格AIPPT
- SEO 笔格AIPPT是135编辑器推出的AI智能PPT制作平台,依托DeepSeek大模型,实现智能大纲生成、一键PPT生成、AI文字优化、图像生成等功能。免费试用,提升PPT制作效率,适用于商务演示、教育培训等多种场景。
- 58次使用
-
- 稿定PPT
- 告别PPT制作难题!稿定PPT提供海量模板、AI智能生成、在线协作,助您轻松制作专业演示文稿。职场办公、教育学习、企业服务全覆盖,降本增效,释放创意!
- 53次使用
-
- Suno苏诺中文版
- 探索Suno苏诺中文版,一款颠覆传统音乐创作的AI平台。无需专业技能,轻松创作个性化音乐。智能词曲生成、风格迁移、海量音效,释放您的音乐灵感!
- 60次使用
查看更多
相关文章
-
- golang MySQL实现对数据库表存储获取操作示例
- 2022-12-22 499浏览
-
- 搞一个自娱自乐的博客(二) 架构搭建
- 2023-02-16 244浏览
-
- B-Tree、B+Tree以及B-link Tree
- 2023-01-19 235浏览
-
- mysql面试题
- 2023-01-17 157浏览
-
- MySQL数据表简单查询
- 2023-01-10 101浏览