MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 15th, 2000, 05:34 PM
Robert_J_Sherman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Is there a recommended size (# of columns) to a given database table?

I'm really just curious, I understand the
concept of normalization and the one to many scenario.

But, in some cases.. is it just a good idea to split a table into multiple tables, after so many columns?

Last question--

HTML in a database table.. should HTML be encoded? Granted, I've inserted URL's without a problem, and I've noticed that "'" single quotes need be processed with the before it... I'm just wondering about other
HTML related character's that may present problems?

------------------
SnR Graphics,
Low Cost Hosting and Web Development.

Reply With Quote
  #2  
Old July 15th, 2000, 08:04 PM
jcbell jcbell is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 14 jcbell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
There is no recommended set number of columns in a table, just whatever is needed to describe your data.
It could be as simple as a few or as many as a couple of dozen.
You should look into the welath of internet articles on database design.

Group related sets of data into individual tables, with a common column so they can be related.

html code is plain text. It depends on the special characters you need to escape with the escape character such as backslant. You can specifically which ones and how to handlw them at the following link: http://www.mysql.com/documentation/...e.html#Literals

the part you want reads as follows:
Within a string, certain sequences have special meaning. Each of these sequences begins with a
backslash (`'), known as the escape character. MySQL recognizes the following escape
sequences:

An ASCII 0 (NUL) character.
n A newline character.
t A tab character.
r A carriage return character.
b A backspace character.
' A single quote (`'') character.
" A double quote (`"') character.
A backslash (`') character.
% A `%' character. This is used to search for literal instances of `%' in contexts where `%'
would otherwise be interpreted as a wildcard character. See section 7.4.6 String comparison
functions.
_ A `_' character. This is used to search for literal instances of `_' in contexts where `_'
would otherwise be interpreted as a wildcard character. See section 7.4.6 String comparison
functions.

------------------

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Table Size Recommendation(s)??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway