| | |
retrieve the last record???
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
I do not know if this can help you, but if you have a date field which you can order by desc, then you can use Top 1 something like this.
if you dont have a date maybe have a index field that is the easiest way to do that.
regards
sql Syntax (Toggle Plain Text)
SELECT top 1 Field1 FROM table1 ORDER BY datefield desc
if you dont have a date maybe have a index field that is the easiest way to do that.
regards
If your already resolved your issue, flag it as solved.
José Bisonó
José Bisonó
0
#4 Oct 5th, 2009
if you have an auto increment field, just use mysql_insert_id() to get the last auto increment
Don't pay data charges. txtFeeder.com is a free way to read the web on your mobile, and avoid data charges! **Now txtFeeder has a wireless note feature! Make notes on the go!
-Kyle Getson
-Kyle Getson
![]() |
Similar Threads
- Why do incorrect value pairs still reflect a record? (MySQL)
- retrieving record based on date (VB.NET)
- retrieve record (Visual Basic 4 / 5 / 6)
- retrieving current record in database (Visual Basic 4 / 5 / 6)
- To Search a record in datagridview (VB.NET)
- How to store & retrieve dates from MS access databse (Visual Basic 4 / 5 / 6)
- overwriting files. (Visual Basic 4 / 5 / 6)
- How do I create a searchable field in Access 2003 (Windows Software)
- To retrive Recordno with records (MS SQL)
- How to use two forms in asp (ASP)
Other Threads in the MySQL Forum
- Previous Thread: help with searching in mysql
- Next Thread: how to record 3-digit zeros
| Thread Tools | Search this Thread |
agplv3 alfresco amazon api aws bizspark breathalyzer changingprices cmg communityjournalism contentmanagement contractors copyright count court crm database design developer development distinct drupal dui ec2 email enterprise eudora facebook form foss gartner gnu government gpl greenit groklaw groupware hiring hyperic images innerjoins insert ip joebrockmeier join journalism keyword keywords kickfire laptop law legal license licensing linux maintenance managing mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opendatabasealliance opengovernment opensource oracle penelope php priceupdating query referencedesign reorderingcolumns resultset saas select sharepoint simpledb sourcecode spotify sql sugarcrm syntax techsupport thunderbird transparency virtualization





