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查看表的最后一个ID的常见方法

《MySQL查看表的最后一个ID的常见方法》在使用MySQL数据库时,我们经常会遇到需要查看表中最后一个id值的场景,无论是为了调试、数据分析还是其他用途,了解如何快速获取最后一个id都是非常实用的技... 目录背景介绍方法一:使用MAX()函数示例代码解释适用场景方法二:按id降序排序并取第一条示例代码解

Python+PyQt5实现MySQL数据库备份神器

《Python+PyQt5实现MySQL数据库备份神器》在数据库管理工作中,定期备份是确保数据安全的重要措施,本文将介绍如何使用Python+PyQt5开发一个高颜值,多功能的MySQL数据库备份工具... 目录概述功能特性核心功能矩阵特色功能界面展示主界面设计动态效果演示使用教程环境准备操作流程代码深度解

如何清理MySQL中的binlog问题

《如何清理MySQL中的binlog问题》:本文主要介绍清理MySQL中的binlog问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目http://www.chinasem.cn录清理mysql中的binlog1.查看binlog过期时间2. 修改binlog过期

MySQL基本查询示例总结

《MySQL基本查询示例总结》:本文主要介绍MySQL基本查询示例总结,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下吧... 目录Create插入替换Retrieve(读取)select(确定列)where条件(确定行)null查询order by语句li

查看MySql主从同步的偏移量方式

《查看MySql主从同步的偏移量方式》:本文主要介绍查看MySql主从同步的偏移量方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 1.mysql的主从同步方案mysqlphp为了在实现读写分离,主库写,从库读mysql的同步方案主要是通过从库读取主库的binl

MySQL表空间结构详解表空间到段页操作

《MySQL表空间结构详解表空间到段页操作》在MySQL架构和存储引擎专题中介绍了使用不同存储引擎创建表时生成的表空间数据文件,在本章节主要介绍使用InnoDB存储引擎创建表时生成的表空间数据文件,对... 目录️‍一、什么是表空间结构1.1 表空间与表空间文件的关系是什么?️‍二、用户数据在表空间中是怎么

Java JSQLParser解析SQL的使用指南

《JavaJSQLParser解析SQL的使用指南》JSQLParser是一个Java语言的SQL语句解析工具,可以将SQL语句解析成为Java类的层次结构,还支持改写SQL,下面我们就来看看它的具... 目录一、引言二、jsQLParser常见类2.1 Class Diagram2.2 Statement

mysql中的group by高级用法详解

《mysql中的groupby高级用法详解》MySQL中的GROUPBY是数据聚合分析的核心功能,主要用于将结果集按指定列分组,并结合聚合函数进行统计计算,本文给大家介绍mysql中的groupby... 目录一、基本语法与核心功能二、基础用法示例1. 单列分组统计2. 多列组合分组3. 与WHERE结合使

MySQL数据库实现批量表分区完整示例

《MySQL数据库实现批量表分区完整示例》通俗地讲表分区是将一大表,根据条件分割成若干个小表,:本文主要介绍MySQL数据库实现批量表分区的相关资料,文中通过代码介绍的非常详细,需要的朋友可以参考... 目录一、表分区条件二、常规表和分区表的区别三、表分区的创建四、将既有表转换分区表脚本五、批量转换表为分区

宝塔安装的MySQL无法连接的情况及解决方案

《宝塔安装的MySQL无法连接的情况及解决方案》宝塔面板是一款流行的服务器管理工具,其中集成的MySQL数据库有时会出现连接问题,本文详细介绍两种最常见的MySQL连接错误:“1130-Hostisn... 目录一、错误 1130:Host ‘xxx.xxx.xxx.xxx’ is not allowed