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

senior

What is autocommit in MySQL? Can you run a transaction without disabling autocommit?

middle

What is mysqldump ?

middle

What is the use of IN and BETWEEN in MySQL queries?

Bình luận

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

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