MySQL
文章平均质量分 58
若海音符
愿每一份努力都被赏识!
展开
-
MySQL入门
Mysql是一个关系型数据库管理系统,支持正规的SQL查询语言并采用多种数据类型,能够对数据进行各种详细的查询。Mysql的核心程序采用完全的多线程编程,并且可以运行在不同的操作系统下.1.cmd进入MySQL2.创建数据库:create database xxx;3.删除数据库:drop databasexxx;4.查看数据库:show datab原创 2016-07-22 19:15:42 · 449 阅读 · 0 评论 -
197. Rising Temperature
Given a Weather table,write a SQL query to find all dates' Ids with higher temperature compared toits previous (yesterday's) dates.+---------+------------+------------------+| Id(INT) | Date(D原创 2016-08-29 22:45:18 · 504 阅读 · 0 评论 -
196. Delete Duplicate Emails
Write a SQL query to delete all duplicate email entriesin a table named Person, keeping only unique emails based on its smallest Id.+----+------------------+| Id | Email |+----+----原创 2016-08-29 22:46:41 · 591 阅读 · 0 评论 -
183. Customers Who Never Order
Suppose that a website contains two tables, the Customers table and the Orders table. Write a SQL query to find all customers who never order anything.Table: Customers.+----+-------+| Id | Na原创 2016-08-30 09:17:27 · 479 阅读 · 0 评论 -
182. Duplicate Emails
Write a SQL query to find all duplicate emails in a table named Person.+----+---------+| Id | Email |+----+---------+| 1 | a@b.com || 2 | c@d.com || 3 | a@b.com |+----+---------+For原创 2016-08-30 09:25:18 · 537 阅读 · 0 评论 -
181. Employees Earning More Than Their Managers
The Employee table holds all employees including their managers. Every employee has an Id, and there is also a column for the manager Id.+----+-------+--------+-----------+| Id | Name | Salary |原创 2016-08-30 12:47:41 · 419 阅读 · 0 评论