AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[mysql] timestamp

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
marcind
Guest





PostPosted: Wed Mar 16, 2005 11:34 pm    Post subject: [mysql] timestamp Reply with quote



witam mam takie pytanie
na Mysql'u (4.0.21) zadeklarowalem dwa rekordy w tablicy jako timestamp
z warotsciami domyslnuymi:
data_1 timestamp(14) NOT NULL,
data_2 timestamp(14) NOT NULL default '00000000000000',


Field | Type | Null | Key | Default | Extra
data_1 | timestamp(14) | YES | | NULL
data_2 | timestamp(14) | YES | | 00000000000000

i teraz problem moj jest taki ze data_1 ustawiam sobie wykonujac inserta
funkcja NOW(), natomiast data_2 chcialbym zeby caly czas pozostalo jako
0000000 dopuki nie zapisze jej (updat'em)
jednak teraz kazdy update tej tablicy powoduje zapisanei daty do data_2,
pomimo ze nie ustawiam tego w zapytaniu.

jak powinienem zadeklarowac taka tablice ?

dzieki za pomoc
marcind
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.