简体   繁体   中英

Mysql Database & drop-down List

I want to create a database entry screen with minimal programming. So far phpmyadmin as a tool does the job except that it does not offer options such as drop-down lists on fields whose values are populated from another table. Is there any secure tool out there that offers simple operations like that (preferably written in php and customizable).

Thanks

if you mean foreign keys, you can do as below :

  1. Convert both tables into innodb, if they are not already.

  2. View the structure of the table which will have a foreign key. Make the referencing field an INDEX.

  3. Now come back to structure view and click Relation view.

you can see more details in Here

Even if the tables are not InnoDB, phpMyAdmin permits you to define the relations via Relation view, provided you have installed the phpMyAdmin configuration storage. See http://docs.phpmyadmin.net/en/latest/setup.html#phpmyadmin-configuration-storage .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM