update an example
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2002-06-26 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* Documentation.html: update the persons/towns/countries example
|
||||
|
||||
2002-06-26 Olivier L. M<>ller <om@omnis.ch>
|
||||
* tbl_change.php3: display the submit button every 15 lines:
|
||||
may be useful for tables with 200 fields...
|
||||
|
@@ -1925,7 +1925,8 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
||||
<p>
|
||||
<b>How can I use the relation table in Query-by-example?</b>
|
||||
<br />
|
||||
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:
|
||||
<br /><br />
|
||||
@@ -1958,8 +1959,8 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
||||
INSERT INTO towns VALUES ('S', 'Sherbrooke');<br />
|
||||
INSERT INTO towns VALUES ('M', 'Montr<74>al');<br />
|
||||
<br />
|
||||
INSERT INTO `PMA_relation` VALUES ('persons', 'town_code', 'towns', 'town_code', 1);<br />
|
||||
INSERT INTO `PMA_relation` VALUES ('persons', 'country_code', 'countries', 'country_code', 1);<br />
|
||||
INSERT INTO `PMA_relation` VALUES ('mydb','persons', 'town_code', 'mydb', 'towns', 'town_code');<br />
|
||||
INSERT INTO `PMA_relation` VALUES ('mydb, 'persons', 'country_code', 'mydb', 'countries', 'country_code');<br />
|
||||
</tt>
|
||||
<br />
|
||||
Then test like this:
|
||||
|
Reference in New Issue
Block a user