If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Help me!!! the boring timestamp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-19-03, 02:34
jasca jasca is offline
Registered User
 
Join Date: Dec 2003
Posts: 1
Talking Help me!!! the boring timestamp

There's a field with timestamp type in the table I'm visiting.Now I want to insert a record into the table.
code in vc++:
CDaoDatabase myDatabase;
CString strODBC;
//set the odbc
...
myDatabase.Open(NULL,FALSE,FALSE,strODBC);

CString strSQL;
strSQL.Format("insert into my_table values(...,'20031218',...)");
myDatabase.Execute(strSQL);
...

When it runs "myDatabase.Execute(strSQL)",an error occurs--"Can't update 'timestamp_field',field not updateable".
I just don't know what on earth the matter is and I'm going crazy.
Help me! Help me! Help me!
Thanks advance!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On