
数据库
金大大诶
用抽象构建架构,用实现扩展细节。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
MySQL数据库学习
建表 学生表 create table Student(S# varchar(10),Sname nvarchar(10),Sage datetime,Ssex nvarchar(10))DEFAULT charset = utf8; insert into Student values('01' , '赵雷' , '1990-01-01' , '男') insert into Student...原创 2019-02-16 11:45:31 · 842 阅读 · 0 评论 -
数据库插入信息时报字符错误的问题
1. 建表时设置默认字符串编码方式为utf8 create table test() default charset = utf8; 2. 已经添加的表需要设置一下: alter table test convert to character set utf8 collate utf8_unicode_ci; 3. 直接修改数据库的字符串编码...原创 2019-03-05 10:17:40 · 564 阅读 · 0 评论 -
[LeetCode]Second Highest Salary-limit offset介绍
在员工工资表中返回第二高的记录,如果没有则返回null。 使用limit offset SELECT (SELECT DISTINCT Salary FROM Employee ORDER BY Salary DESC LIMIT 1 OFFSET 1) AS SecondHighestS...原创 2019-03-03 14:55:38 · 196 阅读 · 0 评论 -
LeetCode-Duplicate Emails
select Email from ( select Email, count(Email) as num from Person group by Email ) as statistic where num > 1 ; group by 和 having select Email from Person group by Email having count(Emai...原创 2019-03-03 15:39:08 · 262 阅读 · 0 评论 -
win下删除服务
进入命令行 win+r sc delete servicename原创 2019-02-27 11:21:38 · 273 阅读 · 0 评论 -
MongoDB in Action
use tutorial 创建集合tutorial db.users.insert({username:"Bob"}) 新增信息 db.users.find() 查询 db.users.update({username: "Bob"}, {$set: {country: "Canada"}}) 更新文档 db.users.update...原创 2019-04-10 16:24:41 · 275 阅读 · 0 评论 -
MongoDB基础
show dbs:显示所有数据的列表 use db:使用数据库 db:查看当前数据库 db.rob.insert({x:10}):刚创建的数据库并不在数据库列表中,需要向新数据库中插入数据 db.collection.find():查看集合的信息 db.dropDatabase():删除当前数据库 db.collection.drop():删除集合 db.createCo...原创 2019-04-10 16:26:44 · 261 阅读 · 0 评论