The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
One master ID table in MySQL
Hi!
I'm not sure if this is possible directly in MySQL but I had to ask. I want to have one table in MySQL that will hold the ID's, names, and descriptions of items. Then I wish other tables (each table is for one type of an item) that will not have names and descriptions in them but only an ID that is directly linked to the ID in the "master ID" table. I need this like this because there will be a lot of searches and indexing in the item tables and I wish the names (or at least description blob/text) to be outside for faster searching (and easier multi-language support later). Thank you in advance.. |
#2
|
|||
|
|||
Sure if you have enough knowledge of MySQL and PHP you can create such functions.
|
#3
|
||||
|
||||
I know I can create it with PHP, but is there a way to do it using only MySQL?
|
#4
|
|||
|
|||
If you want to do this entirely with MySQL and not make changes to the datamanagers or utilize plugins, it is possible. You could use MySQL triggers to insert a duplicated row with whatever information you want into this secondary table. Triggers became available in version MySQL v5.0.2. You can read more about them here: http://dev.mysql.com/doc/refman/5.0/en/triggers.html
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|