Results 1 to 5 of 5
Thread: The last post in a SQL table
- 02-25-2012, 07:00 PM #1
Member
- Join Date
- Feb 2012
- Location
- Norway
- Posts
- 96
- Rep Power
- 0
- 02-25-2012, 09:34 PM #2
Re: The last post in a SQL table
What does your question have to do with Java?
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 02-26-2012, 08:54 AM #3
Member
- Join Date
- Feb 2012
- Location
- Norway
- Posts
- 96
- Rep Power
- 0
Re: The last post in a SQL table
I found a command to do this:
The command is used in a Java program.Java Code:SELECT * from Table order by ID desc limit 1
.gif)
In the same program I want to create lines in a temporary table. When I press a button all theese lines will be transferred to another permanent table, and the lines in the temporary table will be deleted.
Any suggestions how to do this from my Java program?
- 02-27-2012, 01:48 AM #4
Senior Member
- Join Date
- Apr 2010
- Location
- Philippines
- Posts
- 580
- Rep Power
- 4
Re: The last post in a SQL table
I think you dont need two tables for that, you can add a field which will identify if that record is temporary or permanent. Like zero(0) as temporary and one(1) as permanent.
- 02-27-2012, 12:16 PM #5
Member
- Join Date
- Feb 2012
- Location
- Norway
- Posts
- 96
- Rep Power
- 0
Similar Threads
-
Can you compare a list against a table, and see which items aren't in table?
By mydarkpassenger in forum JDBCReplies: 3Last Post: 02-23-2012, 09:30 AM -
How to embed HTML table in lotus notes tabbed table using java?
By mmsmohana in forum New To JavaReplies: 1Last Post: 09-27-2011, 06:06 AM -
How to repaint.refresh the table (table model) with combo box selection envent
By man4ish in forum AWT / SwingReplies: 1Last Post: 01-08-2010, 06:19 AM -
DOnt know if 1st post if did, I am VERY sorry for duplicate post. I have error messg
By afisher300 in forum New To JavaReplies: 3Last Post: 05-04-2009, 03:15 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks