can anyone explain about stored procedure,Triggers and
transaction in php?

Answer Posted / prasadkonnur

A stored procedure is a set of SQL commands that can be
compiled and stored in the server. Once this has been done,
clients don’t need to keep re-issuing the entire query but
can refer to the stored procedure.This provides better
overall performance because the query has to be parsed only
once, and less information needs to be sent between the
server and the client. However, stored procedures of
course do increase the load on the database server system,
as more of the work is done on the server side and less on
the client (application) side.

A trigger is effectively a type of stored procedure, one
that is invoked when a particular event occurs.For example,
you can install a stored procedure that is triggered each
time a record is deleted from a transaction table and that
stored procedure automatically deletes the corresponding
customer from a customer table when all his transactions are
eleted.

Indexes are used to find rows with specific column values
quickly.Without an index, MySQL must begin with the first
row and then read through the entire table to find the
relevant rows. The larger the table, the more this costs. If
the table has an index for the columns in question, MySQL
can quickly determine the position to seek to in the
middle of the data file without having to look at all the
data. If a table has 1,000 rows, this is at least 100 times
faster than reading sequentially. If you need to access most
of the rows, it is faster to read sequentially, because this
minimizes disk seeks.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by pear in php? What is the purpose of it?

519


What is the difference between characters 34 and x34?

506


What language is php written in?

577


What is api example?

519


Explain mail function in PHP with syntax?

553






Explain how we can get the number of elements in an array?

511


How can you declare a constant variable in php?

564


Tell me what are the correct and the most two common way to start and finish a php block of code?

523


What is move_uploaded_file in php?

541


Why session is required?

511


What are escaping characters?

536


Which function is used to read a file removing the html and php tags in it upwork?

482


Why php is sometimes called as embedded scripting language?

481


Where are php configuration settings stored?

525


What is delimiter php?

524