» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 08-11-2006, 03:01 PM
rement rement is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rement is on a distinguished road
Exclamation specify the limit of records that can be entered in the table

Hi friends

Is it possible to specify the limit of records that can be entered in the table.

Regards
rement -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-11-2006, 03:03 PM
jesussaves jesussaves is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jesussaves is on a distinguished road
Default

one way would be to set the auto_increment value high enough so that only the desired number of rows can be added before the auto_increment number hits the maximum for its datatype

for example, to limit a table to only 10 rows, create the table with a TINYINT auto_increment and set its value at 117 -- after you've added 10 rows, the auto_increment number will be 127 and you will get an error if you try to add another row -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
retrieving deleted records! sureshot MySQL Forums 1 02-20-2007 07:45 AM
unable to add posts to a phpbb table after moving servers. tanny MySQL Forums 3 02-13-2007 03:44 PM
Question about combining two DB records into one ASP Table richardson ASP forums and Tips 1 08-29-2006 02:35 PM
Question about combining two DB records into one ASP Table richardson ASP forums and Tips 0 08-29-2006 02:34 PM
records in table sniffer ASP forums and Tips 1 08-22-2006 03:20 PM


All times are GMT. The time now is 04:24 AM.