~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/r/func_timestamp.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop table if exists t1;
 
2
set time_zone="+03:00";
 
3
create table t1 (Zeit time, Tag tinyint not null, Monat tinyint not null,
 
4
Jahr smallint not null, index(Tag), index(Monat), index(Jahr) );
 
5
insert into t1 values ("09:26:00",16,9,1998),("09:26:00",16,9,1998);
 
6
SELECT CONCAT(Jahr,'-',Monat,'-',Tag,' ',Zeit) AS Date,
 
7
UNIX_TIMESTAMP(CONCAT(Jahr,'-',Monat,'-',Tag,' ',Zeit)) AS Unix
 
8
FROM t1;
 
9
Date    Unix
 
10
1998-9-16 09:26:00      905927160
 
11
1998-9-16 09:26:00      905927160
 
12
drop table t1;
 
13
set time_zone= @@global.time_zone;