摘要: 将json文件import 到mongo db中, 控制台提示: 0 document(s) imported successfully. 0 document(s) failed to import. 原因是你的文件中没有内容,是个空文件,所以导入失败。只需在文件中初始化一条数据,即可成功导入。 阅读全文
posted @ 2020-11-12 01:04 菠菜猫 阅读(250) 评论(0) 推荐(1) 编辑
摘要: node.js连接mongodb,报错: 代码如下: 1 const mongoose = require('mongoose'); 2 3 mongoose.connect('mongodb://localhost/pg' ) 4 .then(()=>console.log('数据库连接成功')) 阅读全文
posted @ 2020-11-12 01:00 菠菜猫 阅读(451) 评论(0) 推荐(0) 编辑
摘要: Gulp 是基于 node 实现 Web 前端自动化开发的工具。(自动化构建工具) 一. Gulp作用: 1.项目上线,Html,css,js文件压缩合并 2.语法转换(es6,less....) 3.公共文件抽离 4.修改问价浏览器自动刷新 简要:我在使用gulp压缩时,报错如下: 二.Gulp常 阅读全文
posted @ 2020-10-21 08:43 菠菜猫 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "nagaram" Output: true Example 阅读全文
posted @ 2020-10-10 00:51 菠菜猫 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 176. Second Highest Salary Easy 要求:返回表中薪资第二高数据 Write a SQL query to get the second highest salary from the Employee table. + + + | Id | Salary | + + + 阅读全文
posted @ 2020-09-30 22:21 菠菜猫 阅读(276) 评论(0) 推荐(0) 编辑
摘要: leetcode : 184. Department Highest Salary Medium The Employee table holds all employees. Every employee has an Id, a salary, and there is also a colum 阅读全文
posted @ 2020-09-29 05:02 菠菜猫 阅读(1093) 评论(0) 推荐(0) 编辑
摘要: 181. Employees Earning More Than Their Managers 要求:找到比manager 工资高的 employee The Employee table holds all employees including their managers. Every emp 阅读全文
posted @ 2020-09-28 13:35 菠菜猫 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 在html中,必不可少的就是table,form,li,那么他们究竟有哪些属性和不同呢,下面简单的列举: 三者作用: 1. table : 展示数据 2. form : 收集用户信息 3.ul li /ol li : 页面布局规范,当作一个容器,装载结构,样式一致的文字或图表。(自由组合度更高) 常 阅读全文
posted @ 2020-09-28 09:27 菠菜猫 阅读(636) 评论(0) 推荐(0) 编辑
摘要: leetcode:找到名字重复的邮箱名 Write a SQL query to find all duplicate emails in a table named Person. + + + | Id | Email | + + + | 1 | a@b.com | | 2 | c@d.com | 阅读全文
posted @ 2020-09-27 13:24 菠菜猫 阅读(684) 评论(0) 推荐(0) 编辑
摘要: leetcode: 题目:There is a table courses with columns: student and class Please list out all classes which have more than or equal to 5 students. For exa 阅读全文
posted @ 2020-09-27 12:55 菠菜猫 阅读(501) 评论(0) 推荐(0) 编辑