[prev in list] [next in list] [prev in thread] [next in thread]
List: hsqldb-user
Subject: Re: [Hsqldb-user] Limit max no of records in table
From: "fredt" <fredt () users ! sourceforge ! net>
Date: 2009-04-02 16:20:41
Message-ID: 6210CC01661D4A669E5BC0CED5DD2BC9 () BLACK
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
The simplest way is to write your own procedure to count the records then delete the \
old ones.
Fred
----- Original Message -----
From: Utkarsh Shah
To: hsqldb-user@lists.sourceforge.net
Sent: 02 April 2009 14:30
Subject: [Hsqldb-user] Limit max no of records in table
Hi All,
I am new to hsql and need some help.
I have to store few records in memory so I created in-memory database and inserted \
few records.
It worked successfully.
What I want to do is restrict no of records in a table
e.g.
test_table1 maximum 50 records can be stored and if more insert stmt found then \
remove old records and add new.
test_table2 maximum 100 records can be stored and if more insert stmt found then \
remove old records and add new.
Kindly help me to achieve the same. Is there any configuration which can help me to \
do the same ?
Thanks & Regards,
Utkarsh
------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________
Hsqldb-user mailing list
Hsqldb-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hsqldb-user
[Attachment #5 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR>
<STYLE>@font-face {
font-family: Cambria Math;
}
@font-face {
font-family: Calibri;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
LI.MsoNormal {
FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
DIV.MsoNormal {
FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: \
personal-compose }
.MsoChpDefault {
mso-style-type: export-only
}
DIV.Section1 {
page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT size=2>The simplest way is to write your own procedure to
count the records then delete the old ones.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Fred</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 \
2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">----- Original Message \
----- </DIV> <DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=utkarsh.shah@elitecore.com
href="mailto:utkarsh.shah@elitecore.com">Utkarsh Shah</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=hsqldb-user@lists.sourceforge.net
href="mailto:hsqldb-user@lists.sourceforge.net">hsqldb-user@lists.sourceforge.net</A> \
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> 02 April 2009 14:30</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Hsqldb-user] Limit max no of
records in table</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal>Hi All,<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>I am new to hsql and need some help.<o:p></o:p></P>
<P class=MsoNormal>I have to store few records in memory so I created
in-memory database and inserted few records.<o:p></o:p></P>
<P class=MsoNormal>It worked successfully.<o:p></o:p></P>
<P class=MsoNormal>What I want to do is restrict no of records in a
table<o:p></o:p></P>
<P class=MsoNormal>e.g. <o:p></o:p></P>
<P class=MsoNormal>test_table1 maximum 50 records can be stored and if more
insert stmt found then remove old records and add new.<o:p></o:p></P>
<P class=MsoNormal>test_table2 maximum 100 records can be stored and if more
insert stmt found then remove old records and add new.<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>Kindly help me to achieve the same. Is there any
configuration which can help me to do the same ?<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>Thanks & Regards,<o:p></o:p></P>
<P class=MsoNormal>Utkarsh<o:p></o:p></P></DIV>
<P>
<HR>
<P></P>------------------------------------------------------------------------------<BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Hsqldb-user mailing
list<BR>Hsqldb-user@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/hsqldb-user<BR></BLOCKQUOTE></BODY></HTML>
------------------------------------------------------------------------------
_______________________________________________
Hsqldb-user mailing list
Hsqldb-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hsqldb-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic