1 5个MySQL使用问题 1)关于count(*) 知识点:MyISAM会直接存储总行数,InnoDB则不会,需要按行扫描。 潜台词是,对于select count(*) from t; 如果数据量大,MyISAM会瞬间返回,而InnoDB则会一行行扫描。 实践:数据量大的表,InnoDB不要轻易 ...
                            
                            
                                分类:
数据库   时间:
2021-07-02 15:38:31   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                部署 创建镜像 把net 发布文件后 上传到centos 在目录下执行 docker build -t name . 启动镜像 docker端口号映射到主机 docker run --name=xwh -p 7351:7351 -d imagesname 安装docker 卸载docker命令 su ...
                            
                            
                                分类:
Web程序   时间:
2021-07-02 15:26:43   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                product 表 product_name、spu、create_datetime 想要查找商品名称中包涵短袖的商品一共有多少个 select count(*) from product where product_name like "%短袖%" shop 表 中有shop_name、chann ...
                            
                            
                                分类:
数据库   时间:
2021-07-01 17:22:17   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    //-n 预览需要删除版本控制的文件列表 git rm -r -n --cached "vendor" //执行删除命令 git rm -r --cached "vendor" //添加文件到.gitignore //提交git commit -m "remove vendor" //提交到远程服务 ...
                            
                            
                                分类:
其他好文   时间:
2021-07-01 17:03:23   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                直接上sql select column_name as 字段类型, column_type as 数据类型, data_type as 字段类型, character_maximum_length as 长度, is_nullable as 是否为空, column_default as 默认值, ...
                            
                            
                                分类:
数据库   时间:
2021-07-01 16:50:23   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    背景 参考了狂神老师的 Docker 教程,非常棒! https://www.bilibili.com/video/BV1og4y1q7M4?p=15 直接运行容器 本地找不到镜像会自动下载 --rm Automatically remove the container when it exits  ...
                            
                            
                                分类:
其他好文   时间:
2021-07-01 16:48:43   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                准备工作 系统要求 Docker 支持 64 位版本 CentOS 7/8,并且要求内核版本不低于 3.10。 CentOS 7 满足最低内核的要求,但由于内核版本比较低,部分功能(如 overlay2 存储层驱动)无法使用,并且部分功能可能不太稳定。 卸载旧版本 sudo yum remove d ...
                            
                            
                                分类:
其他好文   时间:
2021-06-30 18:36:24   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    SELECT Subject, Semester, Count(*) FROM Subject_Selection GROUP BY Subject, Semester ...
                            
                            
                                分类:
数据库   时间:
2021-06-30 18:14:21   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                过滤与排序 过滤 关键字字段 where 1.例如在原有的查询sql后面加上 select * from 表名 where 字段名 > 200 and 字段名 = '111' or z字段名 = '1112' 2.多条件查询 and优先级大于or 过滤条件区分大小写 3.字符串出现的话严格区分大小写 ...
                            
                            
                                分类:
数据库   时间:
2021-06-30 18:13:21   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    相似推荐的数据请求是独立的,对应的接口为“/recommend”。 export function getRecommend(){ return request({ url: '/recommend', }) } 仍然是在created函数中: // 3、获取推荐数据 getRecommend(). ...
                            
                            
                                分类:
其他好文   时间:
2021-06-30 18:12:52   
                                阅读次数:
0