From ce0a13184b38506870200307a0ae86b69b0d6eda Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 26 Jun 2002 15:10:34 +0000 Subject: [PATCH] update an example --- ChangeLog | 3 +++ Documentation.html | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index dcedf2493..f52c1c9b2 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2002-06-26 Marc Delisle + * Documentation.html: update the persons/towns/countries example + 2002-06-26 Olivier L. Müller * tbl_change.php3: display the submit button every 15 lines: may be useful for tables with 200 fields... diff --git a/Documentation.html b/Documentation.html index e968ffe35..dfd05b3a2 100755 --- a/Documentation.html +++ b/Documentation.html @@ -1925,7 +1925,8 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'

How can I use the relation table in Query-by-example?
- Here is an example with the tables persons, towns and countries. If you + Here is an example with the tables persons, towns and countries, all + located in the database mydb. If you don't have a PMA_relation table, create it as explained in the configuration section. Then create the example tables:

@@ -1958,8 +1959,8 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'      INSERT INTO towns VALUES ('S', 'Sherbrooke');
     INSERT INTO towns VALUES ('M', 'Montréal');

-      INSERT INTO `PMA_relation` VALUES ('persons', 'town_code', 'towns', 'town_code', 1);
-      INSERT INTO `PMA_relation` VALUES ('persons', 'country_code', 'countries', 'country_code', 1);
+      INSERT INTO `PMA_relation` VALUES ('mydb','persons', 'town_code', 'mydb', 'towns', 'town_code');
+      INSERT INTO `PMA_relation` VALUES ('mydb, 'persons', 'country_code', 'mydb', 'countries', 'country_code');

Then test like this: