Câu hỏi phỏng vấn MySQL
Câu hỏi

What different stored objects are supported in MySQL?

Câu trả lời

MySQL supports a variety of stored objects that allow users to store and manage SQL code directly on the server. These stored objects include:

  1. Stored Procedures: These are created with the CREATE PROCEDURE command and are invoked using the CALL statement. Stored procedures do not return a value directly but can modify parameters and generate result sets for the client[2][3].

  2. Stored Functions: Functions are created with the CREATE FUNCTION command and are used similarly to built-in functions. They are invoked in expressions and return a value during expression evaluation[2][3].

  3. Triggers: Triggers are created with the CREATE TRIGGER command and are associated with a table. They are activated automatically when a specified event occurs on the table, such as an insert or update operation[2].

  4. Events: Events are created with the CREATE EVENT command and are scheduled tasks that the server executes at specified times or intervals[2].

  5. Views: Views are created with the CREATE VIEW command. They produce a result s...

middle

middle

Gợi ý câu hỏi phỏng vấn

expert

What happens to a trigger in MySQL if an operation which trigger is associated with fails? Does the
trigger execute?

senior

What is database engine or storage engine? Mention few storage engines supported by MySQL and their use.

middle

What is Stored Function in MySQL. How are they different from Stored Procedure?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào