About interview Questions Collection(Basic,Intermediate and Advanced) in MySQL

本文主要是介绍About interview Questions Collection(Basic,Intermediate and Advanced) in MySQL,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

Basic MySQL Interview Questions

1.What is Mysql?

  • Database management system for web servers

2.What are some of the advantages of using MySQL?

  • Flexibility
  • Power
  • Enterprise-Level SQL Feature
  • Full-Text Indexing and Searching
  • Query Caching
  • Replication
  • Configuration and Security

3.What do you mean by `Database`?

  • A structured collection of data stored
  • Organized to be quickly searched
  • Information can be rapidly retrieved

4.What does SQL in MySQL stand for ?

  • Structured Query Language

5.What does a MySQL database contain?

  • one or more tables
  • records and rows
  • columns and fields

6.How can you interact with MySQL?

  • using a command line
  • via a web interface
  • through a programming language

7.What are MySQL Database Queries?

  • a specific request or a question

8.What are some of the common MySQL commands?

  • Alter
  • Backup
  • \c (to cancel input)
  • Create
  • Delete
  • Describe
  • Drop
  • Exit
  • Grant
  • Insert
  • Lock
  • Quit
  • Rename
  • Show
  • Source
  • Status
  • Truncate
  • Unlock
  • Update
  • Use

9.How do you create a database in MySQL?

   Create Database database_name;

10.How do you remove a column from a database?

  • Alter Table books drop pages;

11.How do you view a database in MySQL ?

  • Show databases;

12.What are the Numeric Data Type in MySQL?

  • TINYINT
  • SMALLINT
  • MEDIUMINT
  • INT
  • BIGINT
  • DECIMAL
  • FLOAT
  • DOUBLE
  • BIT

13.What are the String Data Types in MySQL?

  • CHAR
  • VARCHAR
  • BINARY
  • VARBINARY
  • TINYBLOB
  • BLOB
  • MEDIUMLOB
  • LONGBLOB
  • TINYTEXT
  • TEXT
  • MEDIUMTEXT
  • LONGTEXT
  • ENUM
  • SET
  • NULL

14.What are the Temporal Data Type in MySQL?

  • DATE
  • TIME
  • DATETIME
  • TIMESTAMP
  • YEAR

15.What is BLOB in MySQL?

  • BLOB is an acronym that stand for a binary large object.
  • It is used to hold a variable amount of data
  • TINYBLOB
  • BLOB
  • MEDIUMBLOB
  • LONGBLOB
  • A BLOB can hold a very large amount of data.(document,images,videos)

16. How to add users in MySQL?

  • CREATE USER 'testuser' IDENTIFIED BY 'sample password';

Intermediate MySQL Interview Questions

17. What are MySQL "Views"?

  • a view consists of a set of rows that is returned
  • virtual table
  • making the query available via an alias
  • Advantages of views : Simplicity Security Maintainability

18.What are MySQL Trigger?

  • a task that executes in response to database event that involves inserting,modifying,or deleting table data
  •  Trigger purpose including Audit Trails and Validation and Referential Integrity enforcement

19.How many Triggers are possible in MySQL?

Six triggers allowed to use in the MySQL database:

  • Before Insert
  • After Insert
  • Before Update
  • After Update
  • Before Delete
  • After Delete

20.What is the MySQL server?

The server mysqld,is the hub of a MySQL installation,It performs all manipulation of databases and tables.

21.What are the MySQL clients and utilities?

  • mysql (an interactive program enable client to server,execute bash shell )
  • mysqladmin (An administrate program for performing tasks: shut down the server,checking its configuration,monitoring its status)
  • mysqldump (backing up your database or copying database)
  • mysqlcheck and myisamchk (perform table checking,analysis and optimization)

22.What are the types of relationships used in MySQL?

  • One-to-One
  • One-to-Many
  • Many-to-Many

Advanced MySQL Interview Questions

23.Can you explain the logical architecture of MySQL?

  • The top layer: contains the services most network-based client/server tools
  • The second layer contains much of MySQL's brains
  • The third layer contains the storage engines that are responsible for storing and retriveing the data stored in MySQL.

24.What is Scaling in MySQL?

  • Quantity of data
  • Number of users
  • User activity
  • Size of related datasets

这篇关于About interview Questions Collection(Basic,Intermediate and Advanced) in MySQL的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1073313

相关文章

MySQL中时区参数time_zone解读

《MySQL中时区参数time_zone解读》MySQL时区参数time_zone用于控制系统函数和字段的DEFAULTCURRENT_TIMESTAMP属性,修改时区可能会影响timestamp类型... 目录前言1.时区参数影响2.如何设置3.字段类型选择总结前言mysql 时区参数 time_zon

Python MySQL如何通过Binlog获取变更记录恢复数据

《PythonMySQL如何通过Binlog获取变更记录恢复数据》本文介绍了如何使用Python和pymysqlreplication库通过MySQL的二进制日志(Binlog)获取数据库的变更记录... 目录python mysql通过Binlog获取变更记录恢复数据1.安装pymysqlreplicat

使用SQL语言查询多个Excel表格的操作方法

《使用SQL语言查询多个Excel表格的操作方法》本文介绍了如何使用SQL语言查询多个Excel表格,通过将所有Excel表格放入一个.xlsx文件中,并使用pandas和pandasql库进行读取和... 目录如何用SQL语言查询多个Excel表格如何使用sql查询excel内容1. 简介2. 实现思路3

Mysql DATETIME 毫秒坑的解决

《MysqlDATETIME毫秒坑的解决》本文主要介绍了MysqlDATETIME毫秒坑的解决,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着... 今天写代码突发一个诡异的 bug,代码逻辑大概如下。1. 新增退款单记录boolean save = s

mysql-8.0.30压缩包版安装和配置MySQL环境过程

《mysql-8.0.30压缩包版安装和配置MySQL环境过程》该文章介绍了如何在Windows系统中下载、安装和配置MySQL数据库,包括下载地址、解压文件、创建和配置my.ini文件、设置环境变量... 目录压缩包安装配置下载配置环境变量下载和初始化总结压缩包安装配置下载下载地址:https://d

MySQL中的锁和MVCC机制解读

《MySQL中的锁和MVCC机制解读》MySQL事务、锁和MVCC机制是确保数据库操作原子性、一致性和隔离性的关键,事务必须遵循ACID原则,锁的类型包括表级锁、行级锁和意向锁,MVCC通过非锁定读和... 目录mysql的锁和MVCC机制事务的概念与ACID特性锁的类型及其工作机制锁的粒度与性能影响多版本

MYSQL行列转置方式

《MYSQL行列转置方式》本文介绍了如何使用MySQL和Navicat进行列转行操作,首先,创建了一个名为`grade`的表,并插入多条数据,然后,通过修改查询SQL语句,使用`CASE`和`IF`函... 目录mysql行列转置开始列转行之前的准备下面开始步入正题总结MYSQL行列转置环境准备:mysq

MySQL不使用子查询的原因及优化案例

《MySQL不使用子查询的原因及优化案例》对于mysql,不推荐使用子查询,效率太差,执行子查询时,MYSQL需要创建临时表,查询完毕后再删除这些临时表,所以,子查询的速度会受到一定的影响,本文给大家... 目录不推荐使用子查询和JOIN的原因解决方案优化案例案例1:查询所有有库存的商品信息案例2:使用EX

Linux(Centos7)安装Mysql/Redis/MinIO方式

《Linux(Centos7)安装Mysql/Redis/MinIO方式》文章总结:介绍了如何安装MySQL和Redis,以及如何配置它们为开机自启,还详细讲解了如何安装MinIO,包括配置Syste... 目录安装mysql安装Redis安装MinIO总结安装Mysql安装Redis搜索Red

Mysql8.0修改配置文件my.ini的坑及解决

《Mysql8.0修改配置文件my.ini的坑及解决》使用记事本直接编辑my.ini文件保存后,可能会导致MySQL无法启动,因为MySQL会以ANSI编码读取该文件,解决方法是使用Notepad++... 目录Myhttp://www.chinasem.cnsql8.0修改配置文件my.ini的坑出现的问题