The built-in odbc_foreignkeys() function is used to retrieve the list of foreignkeys.
resource odbc_foreignkeys ( resource $connection_id , string $pk_qualifier , string $pk_owner , string $pk_table , string $fk_qualifier , string $fk_owner , string $fk_table )
|Sr.No||Parameters & Description|
It contains the information about odbc connection identifier
It contains the information about foreginkey qualifier
It contains the information about foreginkey owner
It contains the information aboutforeginkey table
<?php $input_ID = odbc_connect("DSN","user_id","pass_id"); $result = odbc_foreignkeys($input_ID,"webdesigntutorialz", "dbo", "Categories", "Northwind", "dbo", "Products"); odbc_result_all($result); ?>
Do feel free to ask your questions where necessary and we will attend to them as soon as possible. If this tutorial was helpful to you, you can use the share button to share this tutorial.
Do follow us on our various social media handles available and also subscribe to our newsletter to get our tutorial posts delivered directly to your emails.
Thanks for reading and bye for now.