Top 20 MySQL Interview Questions and Answers for Freshers (फ्रेशर्स के लिए शीर्ष 20 MySQL इंटरव्यू प्रश्न तथा उत्तर)-
Question 1. Is open-source MySQL database (क्या MySQL डेटाबेस ओपन सोर्स है)?
Answer : Yes, MySQL is open source (हाँ, MySQL खुला स्रोत है).
Question 2. What is default engine of MySQL Database (MySQL डेटाबेस का डिफ़ॉल्ट इंजन क्या है)?
Answer : MyISAM.
Question 3. How many types of engine or types of tables used in MySQL Database (MySQL डेटाबेस में कितने प्रकार के इंजन या कितने प्रकार की टेबल का उपयोग किया जाता है)?
Answer : There are five types of tables that are present – MyISAM, Merge, INNO DB, ISAM and Heap (पाँच प्रकार की तालिकाएँ मौजूद हैं – MyISAM, Merge, INNO DB, ISAM तथा Heap).
Question 4. How to delete a table in MySQL (MySQL में किसी तालिका को कैसे हटाएँ)?
Answer : DROP TABLE table_name;
Question 5. How to change the database name in MySQL (MySQL में डेटाबेस का नाम कैसे बदलें)?
Answer : The following is the syntax of using mysqldump command (mysqldump कमांड का उपयोग करने का सिंटैक्स निम्नलिखित है):
mysqldump -u username -p “password” -R oldDbName > oldDbName.sql
Question 6. What is the default port number of MySQL Database (MySQL डेटाबेस का डिफ़ॉल्ट पोर्ट नंबर क्या है)?
Answer : The default port number of MySQL is 3306 (MySQL का डिफ़ॉल्ट पोर्ट नंबर 3306 है).
Question 7. What is the difference between mysql_fetch_array() and mysql_fetch_object() : mysql_fetch_array() और mysql_fetch_object() के बीच क्या अंतर है?
Answer : Both mysql_fetch_array() and mysql_fetch_object() are built-in function of PHP to retrieve records from MySQL database table.
mysql_fetch_array() returns the result as an array and mysql_fetch_object() returns the result as an object (mysql_fetch_array() परिणाम को एक सरणी के रूप में लौटाता है और mysql_fetch_object() परिणाम को एक ऑब्जेक्ट के रूप में लौटाता है).
Question 8. What is difference between delete and truncate in MySQL (MySQL में डिलीट और ट्रंकेट में क्या अंतर है)?
Answer : The DELETE command removes particular records from a table (DELETE कमांड किसी टेबल से विशेष रिकॉर्ड हटाता है)-
DELETE FROM table_name WHERE conditions;
TRUNCATE command is used to delete the complete data from the table without deleting the table structure (TRUNCATE कमांड का उपयोग तालिका संरचना को हटाए बिना टेबल से संपूर्ण डेटा को हटाने के लिए किया जाता है).
TRUNCATE TABLE table_name;
Question 9. How many types of commands are in SQL (एस क्यू एल में कितने प्रकार के कमांड होते हैं?)?
Answer : There are five types of SQL commands in SQL (एस क्यू एल में पाँच प्रकार के एस क्यू एल कमांड होते हैं)-
- Data Definition Language (DDL) : डेटा परिभाषा भाषा
- Data Manipulation Language (DML) : डेटा हेरफेर भाषा
- Data Control Language (DCL) : डेटा नियंत्रण भाषा
- Transaction Control Language (TCL) : लेनदेन नियंत्रण भाषा
- Data Query Language (DQL) : डेटा क्वेरी भाषा
Question 10. How can you show the version of the installed MySQL (आप स्थापित MySQL का संस्करण कैसे दिखा सकते हैं)?
Answer : You can get version of the installed MySQL Database from command prompt (आप कमांड प्रॉम्प्ट से स्थापित MySQL डेटाबेस का संस्करण प्राप्त कर सकते हैं)-
mysql> SHOW VARIABLES LIKE “%version%”;
PHP interview questions & answers for freshers…
Top 20 MySQL Interview Questions and Answers
Tags: MySQL Interview Questions, MySQL Interview Questions and Answers, MySQL Interview Questions and Answers for Freshers, Top 10 MySQL Interview Questions and Answers
