If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Designing customization in MySQL database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-07-04, 07:41
jyo13 jyo13 is offline
Registered User
 
Join Date: Dec 2003
Posts: 10
Red face Designing customization in MySQL database

I need to design a database for a web application. Customization needs to be implemented, any ides/suggestions how can this be done in MySQL database.
This is my first design, so please help.

Thanks in advance,
Joe
Reply With Quote
  #2 (permalink)  
Old 02-07-04, 13:12
aus aus is offline
Registered User
 
Join Date: Oct 2003
Location: Denver, Colorado
Posts: 137
Re: Designing customization in MySQL database

What do you mean "Customization needs to be implemented"?
Reply With Quote
  #3 (permalink)  
Old 02-08-04, 00:47
jyo13 jyo13 is offline
Registered User
 
Join Date: Dec 2003
Posts: 10
Web application needs customization, want to implement most of it in database. With creating proper tables and relations between them, or maybe create few generic tables and make other use them again and again, so that whenever the application user decides to change something online, very little needs to be done in the database side.
Hope that was clear enough.

Thanks.
Reply With Quote
  #4 (permalink)  
Old 02-08-04, 00:50
jyo13 jyo13 is offline
Registered User
 
Join Date: Dec 2003
Posts: 10
Oracle 9i has something called relation-object design. Is there anything similar that can be implemented in MySQL?
Any help is appreciated.
Reply With Quote
  #5 (permalink)  
Old 02-08-04, 03:06
aus aus is offline
Registered User
 
Join Date: Oct 2003
Location: Denver, Colorado
Posts: 137
So you want the web designers to be able to store whatever kind of data they want (no structure at all)?
Reply With Quote
  #6 (permalink)  
Old 02-08-04, 04:06
jyo13 jyo13 is offline
Registered User
 
Join Date: Dec 2003
Posts: 10
In a crude sense yes. But we would limit the amount of customizability (maintaing the basic sturcture). And these changes could be done only by certain users.

Thanks
Reply With Quote
  #7 (permalink)  
Old 02-08-04, 09:49
sundialsvcs sundialsvcs is offline
Registered User
 
Join Date: Oct 2003
Posts: 706
I once had to design an extremely flexible flat-file database for a client, who needed the ability to define fields at will (not only text but numbers too).

I settled upon a table called schema which defined the fields, and a table called user_fields which contained the information. Each row was a tuple:

{ record_number, field_number, text_value, numeric_value }

The user's input would be stored in numeric as well as text form if the input could be translated to a number; otherwise it was only text.

It took a wee bit o' programming to make this all work, but work it did, and surprisingly well.
__________________
ChimneySweep(R): fast, automatic
table repair at a click of the
mouse! http://www.sundialservices.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On