Click here to Skip to main content
15,896,063 members
Home / Discussions / Database
   

Database

 
GeneralRe: Maintain max x records Pin
Eduard Keilholz30-Nov-10 20:16
Eduard Keilholz30-Nov-10 20:16 
GeneralRe: Maintain max x records Pin
Eduard Keilholz30-Nov-10 2:43
Eduard Keilholz30-Nov-10 2:43 
GeneralRe: Maintain max x records Pin
Mycroft Holmes30-Nov-10 11:25
professionalMycroft Holmes30-Nov-10 11:25 
GeneralRe: Maintain max x records Pin
Eduard Keilholz30-Nov-10 20:14
Eduard Keilholz30-Nov-10 20:14 
GeneralRe: Maintain max x records Pin
Spectre_0011-Dec-10 1:41
Spectre_0011-Dec-10 1:41 
AnswerRe: Maintain max x records Pin
Pete O'Hanlon30-Nov-10 4:55
mvePete O'Hanlon30-Nov-10 4:55 
AnswerRe: Maintain max x records Pin
PIEBALDconsult30-Nov-10 17:57
mvePIEBALDconsult30-Nov-10 17:57 
AnswerRe: Maintain max x records Pin
Dwayne J. Baldwin30-Nov-10 20:40
Dwayne J. Baldwin30-Nov-10 20:40 
The neatest way would be to pre-allocate (insert) 100 (or 500) records in your table. Your stored proc should simply update the oldest record using an implicit autocommit transaction. The data type used to determine the oldest record depends on the possible update frequency.

This guarantees your original request of maintaining max x records at all times.
Dwayne J. Baldwin

AnswerRe: Maintain max x records Pin
Member 40648382-Dec-10 0:31
Member 40648382-Dec-10 0:31 
GeneralRe: Maintain max x records Pin
Eduard Keilholz2-Dec-10 1:05
Eduard Keilholz2-Dec-10 1:05 
Questionbest way to return is_exists Pin
Jassim Rahma29-Nov-10 22:35
Jassim Rahma29-Nov-10 22:35 
Questiondefault blob Pin
Jassim Rahma29-Nov-10 22:30
Jassim Rahma29-Nov-10 22:30 
AnswerRe: default blob Pin
David Skelly30-Nov-10 1:45
David Skelly30-Nov-10 1:45 
Questionmysql problem Pin
mylogics28-Nov-10 23:16
professionalmylogics28-Nov-10 23:16 
AnswerRe: mysql problem Pin
Jörgen Andersson28-Nov-10 23:49
professionalJörgen Andersson28-Nov-10 23:49 
AnswerRe: mysql problem Pin
RaviRanjanKr29-Nov-10 0:07
professionalRaviRanjanKr29-Nov-10 0:07 
GeneralRe: mysql problem [modified] Pin
mylogics29-Nov-10 0:46
professionalmylogics29-Nov-10 0:46 
GeneralRe: mysql problem Pin
Mycroft Holmes29-Nov-10 0:53
professionalMycroft Holmes29-Nov-10 0:53 
GeneralRe: mysql problem Pin
mylogics29-Nov-10 0:58
professionalmylogics29-Nov-10 0:58 
GeneralRe: mysql problem Pin
Luc Pattyn29-Nov-10 2:54
sitebuilderLuc Pattyn29-Nov-10 2:54 
GeneralRe: mysql problem Pin
Mycroft Holmes29-Nov-10 3:33
professionalMycroft Holmes29-Nov-10 3:33 
GeneralRe: mysql problem [modified] Pin
Jörgen Andersson29-Nov-10 4:44
professionalJörgen Andersson29-Nov-10 4:44 
GeneralRe: mysql problem Pin
Luc Pattyn29-Nov-10 5:03
sitebuilderLuc Pattyn29-Nov-10 5:03 
GeneralRe: mysql problem Pin
Jörgen Andersson29-Nov-10 5:16
professionalJörgen Andersson29-Nov-10 5:16 
GeneralRe: mysql problem Pin
RyanEK29-Nov-10 14:47
RyanEK29-Nov-10 14:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.