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出现ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost‘ (10061)的解决方法

《mysql出现ERROR2003(HY000):Can‘tconnecttoMySQLserveron‘localhost‘(10061)的解决方法》本文主要介绍了mysql出现... 目录前言:第一步:第二步:第三步:总结:前言:当你想通过命令窗口想打开mysql时候发现提http://www.cpp

MySQL大表数据的分区与分库分表的实现

《MySQL大表数据的分区与分库分表的实现》数据库的分区和分库分表是两种常用的技术方案,本文主要介绍了MySQL大表数据的分区与分库分表的实现,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有... 目录1. mysql大表数据的分区1.1 什么是分区?1.2 分区的类型1.3 分区的优点1.4 分

MySQL错误代码2058和2059的解决办法

《MySQL错误代码2058和2059的解决办法》:本文主要介绍MySQL错误代码2058和2059的解决办法,2058和2059的错误码核心都是你用的客户端工具和mysql版本的密码插件不匹配,... 目录1. 前置理解2.报错现象3.解决办法(敲重点!!!)1. php前置理解2058和2059的错误

Mysql删除几亿条数据表中的部分数据的方法实现

《Mysql删除几亿条数据表中的部分数据的方法实现》在MySQL中删除一个大表中的数据时,需要特别注意操作的性能和对系统的影响,本文主要介绍了Mysql删除几亿条数据表中的部分数据的方法实现,具有一定... 目录1、需求2、方案1. 使用 DELETE 语句分批删除2. 使用 INPLACE ALTER T

MySQL INSERT语句实现当记录不存在时插入的几种方法

《MySQLINSERT语句实现当记录不存在时插入的几种方法》MySQL的INSERT语句是用于向数据库表中插入新记录的关键命令,下面:本文主要介绍MySQLINSERT语句实现当记录不存在时... 目录使用 INSERT IGNORE使用 ON DUPLICATE KEY UPDATE使用 REPLACE

MySQL Workbench 安装教程(保姆级)

《MySQLWorkbench安装教程(保姆级)》MySQLWorkbench是一款强大的数据库设计和管理工具,本文主要介绍了MySQLWorkbench安装教程,文中通过图文介绍的非常详细,对大... 目录前言:详细步骤:一、检查安装的数据库版本二、在官网下载对应的mysql Workbench版本,要是

mysql数据库重置表主键id的实现

《mysql数据库重置表主键id的实现》在我们的开发过程中,难免在做测试的时候会生成一些杂乱无章的SQL主键数据,本文主要介绍了mysql数据库重置表主键id的实现,具有一定的参考价值,感兴趣的可以了... 目录关键语法演示案例在我们的开发过程中,难免在做测试的时候会生成一些杂乱无章的SQL主键数据,当我们

浅谈mysql的sql_mode可能会限制你的查询

《浅谈mysql的sql_mode可能会限制你的查询》本文主要介绍了浅谈mysql的sql_mode可能会限制你的查询,这个问题主要说明的是,我们写的sql查询语句违背了聚合函数groupby的规则... 目录场景:问题描述原因分析:解决方案:第一种:修改后,只有当前生效,若是mysql服务重启,就会失效;

MySQL多列IN查询的实现

《MySQL多列IN查询的实现》多列IN查询是一种强大的筛选工具,它允许通过多字段组合快速过滤数据,本文主要介绍了MySQL多列IN查询的实现,具有一定的参考价值,感兴趣的可以了解一下... 目录一、基础语法:多列 IN 的两种写法1. 直接值列表2. 子查询二、对比传统 OR 的写法三、性能分析与优化1.

MySQL新增字段后Java实体未更新的潜在问题与解决方案

《MySQL新增字段后Java实体未更新的潜在问题与解决方案》在Java+MySQL的开发中,我们通常使用ORM框架来映射数据库表与Java对象,但有时候,数据库表结构变更(如新增字段)后,开发人员可... 目录引言1. 问题背景:数据库与 Java 实体不同步1.1 常见场景1.2 示例代码2. 不同操作