MySQL Integration - database connection, table creation with constraints, CRUD operations, joins, subqueries, querying MySQL with PHP - Online Test
30:00
1. What is the primary purpose of the mysqli_connect() function in PHP for MySQL integration?
2. Which of the following is a common parameter for mysqli_connect() to specify the database server?
3. What does the `mysqli_error()` function return if a connection attempt fails?
4. When creating a table in MySQL, what does the `PRIMARY KEY` constraint signify?
5. Which constraint is used to ensure that a column cannot have a NULL value?
6. What is the purpose of the `UNIQUE` constraint in a MySQL table?
7. In SQL, what does the `AUTO_INCREMENT` attribute typically do for a column?
8. What does 'CRUD' stand for in the context of database operations?
9. Which SQL statement is used for the 'Create' operation in CRUD?
10. Which SQL statement corresponds to the 'Read' operation in CRUD?
Test Results
0/0