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

相关文章

Springboot中分析SQL性能的两种方式详解

《Springboot中分析SQL性能的两种方式详解》文章介绍了SQL性能分析的两种方式:MyBatis-Plus性能分析插件和p6spy框架,MyBatis-Plus插件配置简单,适用于开发和测试环... 目录SQL性能分析的两种方式:功能介绍实现方式:实现步骤:SQL性能分析的两种方式:功能介绍记录

使用 sql-research-assistant进行 SQL 数据库研究的实战指南(代码实现演示)

《使用sql-research-assistant进行SQL数据库研究的实战指南(代码实现演示)》本文介绍了sql-research-assistant工具,该工具基于LangChain框架,集... 目录技术背景介绍核心原理解析代码实现演示安装和配置项目集成LangSmith 配置(可选)启动服务应用场景

oracle DBMS_SQL.PARSE的使用方法和示例

《oracleDBMS_SQL.PARSE的使用方法和示例》DBMS_SQL是Oracle数据库中的一个强大包,用于动态构建和执行SQL语句,DBMS_SQL.PARSE过程解析SQL语句或PL/S... 目录语法示例注意事项DBMS_SQL 是 oracle 数据库中的一个强大包,它允许动态地构建和执行

SQL 中多表查询的常见连接方式详解

《SQL中多表查询的常见连接方式详解》本文介绍SQL中多表查询的常见连接方式,包括内连接(INNERJOIN)、左连接(LEFTJOIN)、右连接(RIGHTJOIN)、全外连接(FULLOUTER... 目录一、连接类型图表(ASCII 形式)二、前置代码(创建示例表)三、连接方式代码示例1. 内连接(I

在MySQL执行UPDATE语句时遇到的错误1175的解决方案

《在MySQL执行UPDATE语句时遇到的错误1175的解决方案》MySQL安全更新模式(SafeUpdateMode)限制了UPDATE和DELETE操作,要求使用WHERE子句时必须基于主键或索引... mysql 中遇到的 Error Code: 1175 是由于启用了 安全更新模式(Safe Upd

轻松上手MYSQL之JSON函数实现高效数据查询与操作

《轻松上手MYSQL之JSON函数实现高效数据查询与操作》:本文主要介绍轻松上手MYSQL之JSON函数实现高效数据查询与操作的相关资料,MySQL提供了多个JSON函数,用于处理和查询JSON数... 目录一、jsON_EXTRACT 提取指定数据二、JSON_UNQUOTE 取消双引号三、JSON_KE

MySql死锁怎么排查的方法实现

《MySql死锁怎么排查的方法实现》本文主要介绍了MySql死锁怎么排查的方法实现,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧... 目录前言一、死锁排查方法1. 查看死锁日志方法 1:启用死锁日志输出方法 2:检查 mysql 错误

MySQL数据库函数之JSON_EXTRACT示例代码

《MySQL数据库函数之JSON_EXTRACT示例代码》:本文主要介绍MySQL数据库函数之JSON_EXTRACT的相关资料,JSON_EXTRACT()函数用于从JSON文档中提取值,支持对... 目录前言基本语法路径表达式示例示例 1: 提取简单值示例 2: 提取嵌套值示例 3: 提取数组中的值注意

MySQL修改密码的四种实现方式

《MySQL修改密码的四种实现方式》文章主要介绍了如何使用命令行工具修改MySQL密码,包括使用`setpassword`命令和`mysqladmin`命令,此外,还详细描述了忘记密码时的处理方法,包... 目录mysql修改密码四种方式一、set password命令二、使用mysqladmin三、修改u

查询SQL Server数据库服务器IP地址的多种有效方法

《查询SQLServer数据库服务器IP地址的多种有效方法》作为数据库管理员或开发人员,了解如何查询SQLServer数据库服务器的IP地址是一项重要技能,本文将介绍几种简单而有效的方法,帮助你轻松... 目录使用T-SQL查询方法1:使用系统函数方法2:使用系统视图使用SQL Server Configu