Ämne: Datum i MySQL
Visa ett inlägg
Oläst 2004-08-10, 12:52 #6
Klorinsky Klorinsky är inte uppkopplad
Medlem
 
Reg.datum: Jun 2004
Inlägg: 140
Klorinsky Klorinsky är inte uppkopplad
Medlem
 
Reg.datum: Jun 2004
Inlägg: 140
CREATE TABLE foobar (
id int(255) auto_increment,
time timestamp,
PRIMARY KEY (id)
);

SELECT DATE_FORMAT(time, '%y-%m-%d %H:%i:%s') AS time from foobar;
Klorinsky är inte uppkopplad   Svara med citatSvara med citat