Re: Adding TIMESTAMP Column to MySQL Table
Posted by: James Choi
Date: November 23, 2005 12:50PM

Hi Martin,

Can you kindly share your wisdom with me on this issue.

I'm a newbie at MySQL and I have MS Access as my FrontEnd.
I've ran into same problem as others have before me on this error of not being able to update data because of write conflict.

As far as I could tell this problem occurs because MySQL is designed to ignore update data when you are trying to update it with same information; hence, you have to create a dummy column with datatype TimeStamp to add when data has been updated or inserted into a table.

Questions that I still have are:

1. How do you add now() as default to TimeStamp Column (I tried typing "now()" in the default field in MySQL Administator GUI App and it did not allow it)

2. Is accessing data recordset using ADO commands best way? or is there an alternative.
Currently I've been using following code to access MySQL to Update a Data

Dim rst as new adob.recordset
Dim cnn as new adob.connection

set cnn = currentproject.connection

rst.open "SELECT * FROM tblCustomer", cnn, adOpenKeyset, adLockOptimistic

rst.Fields!FirstName = "whatever"
rst.update

Any help will be greatly appreciated

Thanks

Options: ReplyQuote


Subject
Written By
Posted
Re: Adding TIMESTAMP Column to MySQL Table
November 23, 2005 12:50PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.