Our experts have gathered these MySQL MCQs through research, and we hope that you will be able to see how much knowledge base you have for the subject of MySQL by answering these multiple-choice questions.
Get started now by scrolling down!
A. Regular Key
B. Main Key
C. Primary Key
D. Foreign Key
A. bit_or()
B. binary
C. bit_count()
D. bit_and()
A. pseudofile
B. trigger
C. None of the above is correct.
D. embedded SELECT statement
A. COMMIT and UNDO
B. SAVE and ROLLBACK
C. COMMIT and ROLLBACK
D. SAVE and UNDO
A. Prevents Restrictions Limitations
B. Constraints
A. SELECT * FROM Persons WHERE FirstName<>'Peter' AND LastName<>'Jackson'
B. SELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson'
C. SELECT FirstName='Peter', LastName='Jackson' FROM Persons
A. SAVE
B. MODIFY
C. SAVE AS
D. UPDATE
A. Simplified Query Language
B. Structured Query Language
A. Structured Question Language
B. Structured Query Language
C. Strong Question Language
A. SELECT * FROM Persons
B. SELECT *.Persons
C. SELECT Persons
D. SELECT [all] FROM Persons
A. false
B. true
A. DELETE FROM Persons WHERE FirstName = 'Peter'
B. DELETE ROW FirstName='Peter' FROM Persons
C. DELETE FirstName='Peter' FROM Persons
A. ADD NEW
B. INSERT INTO
C. ADD RECORD
D. INSERT NEW
A. false
B. true
A. False
B. True
A. COUNT
B. MAX
C. COMPUTE
D. MIN
A. INSERT ('Jimmy', 'Jackson') INTO Persons
B. INSERT VALUES ('Jimmy', 'Jackson') INTO Persons
C. INSERT INTO Persons VALUES ('Jimmy', 'Jackson')
A. GET
B. EXTRACT
C. OPEN
D. SELECT
A. Nothing
B. Multiply
C. Select All
D. Group By
E. Assign a Pointer
A. REMOVE
B. ERASE
C. COLLAPSE
D. DELETE
A. Before Insert
B. After Delete
C. All
D. Before Update
A. EXTRACT FirstName FROM Persons
B. SELECT Persons.FirstName
C. SELECT FirstName FROM Persons
A. SELECT * FROM Persons WHERE FirstName='Peter'
B. SELECT * FROM Persons WHERE FirstName<>'Peter'
C. SELECT [all] FROM Persons WHERE FirstName='Peter'
D. SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'
A. develope websites
B. manage users
C. make Apps
D. store data
E. Store and manipulate data
A. REMOVE TABLE
B. DESTROY TABLE
C. DELETE TABLE
D. DROP TABLE
A. They can provide a common set of database operations to multiple applications
B. They allow you to store libraries of functions inside the database server
C. They can improve security by limiting users to specific approved queries
D. All of these
A. INSERT INTO Persons ('Olsen') INTO LastName
B. INSERT ('Olsen') INTO Persons (LastName)
C. INSERT INTO Persons (LastName) VALUES ('Olsen')
A. SELECT * FROM Persons ORDER BY FirstName DESC
B. SELECT * FROM Persons ORDER FirstName DESC
C. SELECT * FROM Persons SORT 'FirstName' DESC
D. SELECT * FROM Persons SORT BY 'FirstName' DESC
A. SELECT * FROM teams WHERE team_won like (2, 4, 6, 8);
B. SELECT * FROM teams WHERE team_won IN (2, 4, 6, 8);
C. SELECT * FROM teams WHERE team_won join (2, 4, 6, 8);
D. SELECT * FROM teams WHERE team_won on (2, 4, 6, 8);
A. An error, because a SELECT statement is invalid without a WHERE clause.
B. All of the rows from a table.
C. All of the rows from a table that match the previous WHERE clause.
D. Nothing.
A. False
B. True
A. 60
B. 66
C. 64
D. 62
A. SELECT COUNT(*) FROM Persons
B. SELECT COUNT() FROM Persons
C. SELECT COLUMNS(*) FROM Persons
D. SELECT COLUMNS() FROM Persons
A. The ROLLUP modifier can only be used with the GROUP BY clause
B. The WITH ROLLUP modifier will add an extra row to the results of a query.
C. All of these
A. Atomicity
B. Analysis Allow Alter
A. REDUCE
B. PRIMARY
C. DISTINCT
D. UNIQUE
A. Write
B. Print
C. Read and Print
D. Read and Write
A. '1'
B. 1
C. "1"
A. SELECT * FROM table WHERE name LIKE 'S%';
B. None of these
C. SELECT * FROM table WHERE name = 'S%';
D. SELECT * FROM table WHERE name LIKE = 'S*';
A. ORDER
B. ORDER BY
C. SORT
D. SORT BY
A. PRIMARY KEY
B. FIRST KEY
C. FOREIGN KEY
D. REFERENCE KEY
E. UNIQUE KEY
A. MERGE
B. COMBINE
C. UNION
D. None of these
A. MTRIM()
B. None of these
C. STRIP()
D. LTRIM()
E. TRIM()
A. UPDATE
B. CHANGE
C. ALTER
D. INSERT
E. DELETE
A. restart mysql service init 0 reboot
B. /etc/init.d/mysql restart service mysqld restart
A. That the database is organized in a way to reduce data redundancy. 1NF, 2NF, and 3NF forms are used as common guidelines.
B. That the data returned within any given row is converted to a single object type as most appropriate (string, int, etc.).
C. That the MySQL "strict" mode is invoked to avoid incompatibilities with legacy SQL.
D. That common queries assigned to functions to simplify statements.
E. That non-common characters are stripped from values to ensure compatibility with given character set.
A. Alter
B. Insert
C. Add
D. Update
A. SELECT DATE_FORMAT(btimestamp,'%d/%m/%Y') AS bdate FROM ...
B. SELECT FORMAT_DATE(btimestamp,'%d/%m/%Y') AS bdate FROM ...
A. Far
B. From
C. Near
D. Under
A. Transactional Control Language
B. Truncate Command Language
C. Traffic Control Language