does PHP support foreign key and Rollback?yes or not.if not
then why. how will you done these concept in php?
PHP supports Foreign Keys in InnoDB Storage Engine in
version and above 4.0. It checks the foreign key referential
integrities on Delete and Select statements. If you strictly
needed the foreign keys and speed is not a concern then you
can create table structures using InnoDB Storage Engine.
Where as MyISAM Storage Engines does not allow foreign key
concept. But it will parse the table that contains foreign
keys but wont check the referential integreties. So it is
the job of the designer/programmer to check the desired key
and its dependency in multiple tables.
Let us suppose you have a field F1(primary)in Table1 and
this field is referenced in another tables denoted as (F2,
F3) in tables Table2, Table3......(as a foreign key)
and when you want to perform a DELETE operation/query based
on field F1, then
First you need to write a query to Delete the specified row
in Table1
and you also need to write a query to Delete all
dependent/referenced rows in other tables Table2, Table3...
| Is This Answer Correct ? | 6 Yes | 0 No |
What is php session start?
Can I learn laravel without php?
Explain what are psrs? Choose 1 and briefly describe it?
What are the functions for imap?
how to uploade video in php????
What is mysqli php?
Suppose your Zend engine supports the mode <? ?> Then how can u configure your PHP Zend engine to support <?PHP ?> mode ?
Tell me what is the actually used php version?
What would occur if a fatal error was thrown in your php program?
What is the difference between nowdoc and heredoc?
Which function you can use in php to open a file for reading or writing or for both?
How is csrf token generated?