Coder Social home page Coder Social logo

2018-04-04-05-16-35-1522818995's Introduction

MySQL基础

练习描述

本题要求使用 MySQL 来完成数据库数据表的创建,并使用查询语句完成基本的查询操作。

  • 公司 Company 的字段有:id,companyName,employeesNumber
  • 员工 Employee 的字段有:id,name,age,gender,companyId,salary
  • 按照practice1-practice4的需求完成数据的查询

要求:

  • 创建新的文件result.txt
  • 将每个practice的查询结果都粘贴至result.txt文件中,例如:
     practice1
     +----+------------+-----+----------+-----------+--------+
     | id | name       | age | gender   | companyId | salary |
     +----+------------+-----+----------+-----------+--------+
     |  1 | '********' |  19 | 'female' |         1 |   7000 |
     +----+------------+-----+----------+-----------+--------+
     
     practice2
     +----+------------+-----+----------+
     | id | companyName| employeesNumber| 
     +----+------------+-----+----------+
     |  1 | 'baidu'    |     1000       |   
     +----+------------+-----+----------+  
    

环境要求

  • MySQL:5.7

如何开始

  • 本地启动MySQL
  • 按照practice1.sql里的需求描述,完成数据库、数据表的搭建

输出规范

  • 完成practice1-practice4文件中的所有需求

2018-04-04-05-16-35-1522818995's People

Contributors

recruiting-system avatar xhwutw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.