InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What Is Sqlyog? |
|
Answer» SQLyog program is the most popular GUI tool for admin. It is the most popular MYSQL manager and admin tool. It combines the features of MySQL ADMINISTRATOR, PHPMYADMIN and OTHERS MySQL front ends and MySQL GUI tools. SQLyog program is the most popular GUI tool for admin. It is the most popular MySQL manager and admin tool. It combines the features of MySQL administrator, phpMyadmin and others MySQL front ends and MySQL GUI tools. |
|
| 2. |
How Do You Backup A Database In Mysql? |
|
Answer» It is EASY to backing up DATA with PHPMYADMIN. Select the database you want to backup by clicking the database NAME in the left HAND navigation bar. Then click the export button and make sure that all tables are highlighted that you want to backup. Then specify the option you want under export and save the output. It is easy to backing up data with phpMyAdmin. Select the database you want to backup by clicking the database name in the left hand navigation bar. Then click the export button and make sure that all tables are highlighted that you want to backup. Then specify the option you want under export and save the output. |
|
| 3. |
What Are The Differences Between Mysql_fetch_array(), Mysql_fetch_object(), Mysql_fetch_row()? |
|
Answer» Mysql_fetch_object is used to retrieve the result from the DATABASE as objects while mysql_fetch_array returns result as an ARRAY. This will allow access to the data by the field names. Mysql_fetch_object is used to retrieve the result from the database as objects while mysql_fetch_array returns result as an array. This will allow access to the data by the field names. |
|
| 4. |
What Are The Advantages Of Myisam Over Innodb? |
|
Answer» MyISAM follows a conservative approach to disk SPACE MANAGEMENT and stores each MyISAM table in a separate file, which can be further compresses, if required. On the other hand, InnoDB stores the tables in tablespace. Its further OPTIMIZATION is difficult. MyISAM follows a conservative approach to disk space management and stores each MyISAM table in a separate file, which can be further compresses, if required. On the other hand, InnoDB stores the tables in tablespace. Its further optimization is difficult. |
|
| 5. |
What Is The Usage Of Enums In Mysql? |
|
Answer» ENUMS are used to LIMIT the possible values that GO in the table: For EXAMPLE: CREATE TABLE MONTHS (month ENUM 'January', 'February', 'March'); INSERT months VALUES ('April'). ENUMs are used to limit the possible values that go in the table: For example: CREATE TABLE months (month ENUM 'January', 'February', 'March'); INSERT months VALUES ('April'). |
|
| 6. |
How Is Myisam Table Stored? |
|
Answer» MYISAM table is stored on disk in three FORMATS.
MyISAM table is stored on disk in three formats. |
|
| 7. |
What Is The Use Of Mysql_close()? |
|
Answer» Mysql_close() cannot be used to CLOSE the PERSISTENT CONNECTION. THOUGH it can be used to close connection OPENED by mysql_connect(). Mysql_close() cannot be used to close the persistent connection. Though it can be used to close connection opened by mysql_connect(). |
|
| 8. |
What Is Mysql Data Directory? |
|
Answer» MYSQL DATA DIRECTORY is a place where MySQL stores its data. Each subdirectory under this data DICTIONARY represents a MySQL database. By default the information managed my MySQL = server mysqld is STORED in data directory. MySQL data directory is a place where MySQL stores its data. Each subdirectory under this data dictionary represents a MySQL database. By default the information managed my MySQL = server mysqld is stored in data directory. |
|
| 9. |
How Do You Determine The Location Of Mysql Data Directory? |
|
Answer» The DEFAULT LOCATION of MYSQL data directory in windows is C:mysqldata or C:PROGRAM FilesMySQLMySQL Server 5.0 data. The default location of MySQL data directory in windows is C:mysqldata or C:Program FilesMySQLMySQL Server 5.0 data. |
|
| 10. |
What Is The Usage Of Regular Expressions In Mysql? |
|
Answer» In MySQL, regular expressions are used in queries for searching a pattern in a STRING.
Example:
In MySQL, regular expressions are used in queries for searching a pattern in a string. Example: |
|
| 11. |
What Is The Usage Of I-am-a-dummy Flag In Mysql? |
|
Answer» In MySQL, the i-am-a-dummy flag makes the MySQL engine to DENY the UPDATE and DELETE COMMANDS unless the WHERE clause is present. In MySQL, the i-am-a-dummy flag makes the MySQL engine to deny the UPDATE and DELETE commands unless the WHERE clause is present. |
|
| 12. |
Which Command Is Used To View The Content Of The Table In Mysql? |
|
Answer» The SELECT COMMAND is used to VIEW the content of the table in MYSQL. The SELECT command is used to view the content of the table in MySQL. |
|
| 13. |
What Is The Difference Between Now() And Current_date()? |
|
Answer» NOW() command is used to show current YEAR, MONTH, DATE with HOURS, minutes and seconds while CURRENT_DATE() shows the current year with month and date only. NOW() command is used to show current year, month, date with hours, minutes and seconds while CURRENT_DATE() shows the current year with month and date only. |
|
| 14. |
How Many Columns Can You Create For An Index? |
|
Answer» You can CREATE maximum of 16 INDEXED COLUMNS for a standard table. You can create maximum of 16 indexed columns for a standard table. |
|
| 15. |
What Is Regexp? |
|
Answer» REGEXP is a PATTERN MATCH using regular expression. Regular expression is a POWERFUL way of specifying a pattern for a complex SEARCH. REGEXP is a pattern match using regular expression. Regular expression is a powerful way of specifying a pattern for a complex search. |
|
| 16. |
What Is Mysql Default Port Number? |
|
Answer» MYSQL DEFAULT PORT NUMBER is 3306. MySQL default port number is 3306. |
|
| 17. |
How To Display Nth Highest Salary From A Table In A Mysql Query? |
|
Answer» Let us take a table named employee. To find Nth highest salary is: if you WANT to find 3rd largest salary: Let us take a table named employee. To find Nth highest salary is: if you want to find 3rd largest salary: |
|
| 18. |
What Is The Difference Between Unix Timestamps And Mysql Timestamps? |
|
Answer» ACTUALLY both UNIX TIMESTAMP and MySQL timestamp are stored as 32-bit integers but MySQL timestamp is represented in readable format of YYYY-MM-DD HH:MM:SS format. Actually both Unix timestamp and MySQL timestamp are stored as 32-bit integers but MySQL timestamp is represented in readable format of YYYY-MM-DD HH:MM:SS format. |
|
| 19. |
How To Change A Password For An Existing User Via Mysqladmin? |
|
Answer» <P>MYSQLADMIN -U ROOT -p PASSWORD "newpassword". Mysqladmin -u root -p password "newpassword". |
|
| 20. |
What Are The Security Alerts While Using Mysql? |
| Answer» | |
| 21. |
How To Get The Current Date In Mysql? |
|
Answer» To GET current DATE, use the FOLLOWING syntax: To get current date, use the following syntax: |
|
| 22. |
What Does " I_am_a_dummy Flag" Do In Mysql? |
|
Answer» The " i_am_a_dummy FLAG" enables MySQL ENGINE to refuse any UPDATE or DELETE statement to execute if the WHERE clause is not PRESENT. The " i_am_a_dummy flag" enables MySQL engine to refuse any UPDATE or DELETE statement to execute if the WHERE clause is not present. |
|
| 23. |
What Is The Difference Between Mysql_connect And Mysql_pconnect? |
|
Answer» <P>Mysql_connect:
Mysql_pconnect:
Mysql_connect: Mysql_pconnect: |
|
| 24. |
What Are The Disadvantages Of Mysql? |
| Answer» | |
| 25. |
What Are The Advantages Of Mysql In Comparison To Oracle? |
Answer»
|
|
| 26. |
What Is The Difference Between Float And Double? |
|
Answer» FLOAT stores floating point numbers with ACCURACY up to 8 PLACES and allocates 4 bytes, on the other hand DOUBLE stores floating point numbers with accuracy up to 18 places and allocates 8 bytes. FLOAT stores floating point numbers with accuracy up to 8 places and allocates 4 bytes, on the other hand DOUBLE stores floating point numbers with accuracy up to 18 places and allocates 8 bytes. |
|
| 27. |
What Is The Difference Between Heap Table And Temporary Table? |
|
Answer» HEAP tables:
Temporary tables:
Main differences:
Heap tables: Temporary tables: Main differences: |
|
| 28. |
What Is A Trigger In Mysql? |
|
Answer» A TRIGGER is a set of CODES that executes in RESPONSE to some events. A trigger is a set of codes that executes in response to some events. |
|
| 29. |
What Is Blob And Text In Mysql? |
|
Answer» BLOB is an acronym stands for BINARY LARGE object. It is used to hold a variable amount of data. There are four types of BLOB.
The DIFFERENCES among all these are the maximum length of values they can hold. TEXT is case-insensitive BLOB. TEXT values are non-binary strings (character string). They have a character set and values are stored and compared based on the collation of the character set. There are four types of TEXT.
BLOB is an acronym stands for binary large object. It is used to hold a variable amount of data. There are four types of BLOB. The differences among all these are the maximum length of values they can hold. TEXT is case-insensitive BLOB. TEXT values are non-binary strings (character string). They have a character set and values are stored and compared based on the collation of the character set. There are four types of TEXT. |
|
| 30. |
What Is Heap Table? |
|
Answer» Tables that are present in MEMORY is KNOWN as HEAP tables. When you create a heap table in MySQL, you should need to specify the TYPE as HEAP. These tables are commonly known as memory tables. They are used for HIGH SPEED storage on temporary basis. They do not allow BLOB or TEXT fields. Tables that are present in memory is known as HEAP tables. When you create a heap table in MySQL, you should need to specify the TYPE as HEAP. These tables are commonly known as memory tables. They are used for high speed storage on temporary basis. They do not allow BLOB or TEXT fields. |
|
| 31. |
How Many Triggers Are Possible In Mysql? |
|
Answer» There are only SIX Triggers ALLOWED to USE in MySQL database. There are only six Triggers allowed to use in MySQL database. |
|
| 32. |
What Is The Difference Between Truncate And Delete In Mysql? |
|
Answer» The DELETE command is USED to delete DATA from a table. It only deletes the ROWS of data from the table while, truncate is very DANGEROUS command and should be used carefully because it deletes every row permanently from a table. The DELETE command is used to delete data from a table. It only deletes the rows of data from the table while, truncate is very dangerous command and should be used carefully because it deletes every row permanently from a table. |
|
| 33. |
What Is The Difference Between Char And Varchar? |
|
Answer» A LIST of differences between CHAR and VARCHAR:
A list of differences between CHAR and VARCHAR: |
|
| 34. |
What Are The Different Tables Present In Mysql? |
|
Answer» There are many tables that remain PRESENT by default. But, MYISAM is the default DATABASE engine used in MySQL. There are five types of tables that are present:
There are many tables that remain present by default. But, MyISAM is the default database engine used in MySQL. There are five types of tables that are present: |
|
| 35. |
Why Do We Use Mysql Database Server? |
|
Answer» The MySQL database server is very FAST, reliable and EASY to use. You can easily use and modify the SOFTWARE. MySQL software can be downloaded FREE of cost from the internet. The MySQL database server is very fast, reliable and easy to use. You can easily use and modify the software. MySQL software can be downloaded free of cost from the internet. |
|
| 36. |
What Is The Difference Between Database And Table? |
|
Answer» There is a MAJOR DIFFERENCE between a database and a table. The differences are as follows:
There is a major difference between a database and a table. The differences are as follows: |
|
| 37. |
What Is The Difference Between Mysql And Sql? |
|
Answer» SQL is known as STANDARD query language. It is USED to interact with the database like MYSQL. MySQL is a database that STORES various types of data and keeps it safe. SQL is known as standard query language. It is used to interact with the database like MySQL. MySQL is a database that stores various types of data and keeps it safe. |
|
| 38. |
What Are The Technical Specification Of Mysql? |
|
Answer» MySQL has the following technical SPECIFICATIONS -
MySQL has the following technical specifications - |
|
| 39. |
In Which Language Mysql Is Written? |
|
Answer» MySQL is WRITTEN in C and C++ and its SQL PARSER is written in yacc. MySQL is written in C and C++ and its SQL parser is written in yacc. |
|
| 40. |
What Is Mysql? |
|
Answer» MySQL is a multithreaded, multi-user SQL DATABASE management system which has more than 11 million installations. This is the world's SECOND most popular and WIDELY used open SOURCE database. MySQL is a multithreaded, multi-user SQL database management system which has more than 11 million installations. This is the world's second most popular and widely used open source database. |
|