---
title: "DB2: How to get Timestamp from Sysdummy1"
description: "The best SQL query to select Timestamp from sysdummy1 table. Read more with example."
url: https://srinimf.com/2014/09/29/db2-timestamp-and-sysdummy/
date: 2014-09-29
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2014/09/pexels-photo-5028854.jpeg?fit=1880%2C1253&ssl=1
categories: ["DB2"]
tags: ["DB2 Sysdummy1 Real Usage", "DB2 Tips and Solutions"]
type: post
lang: en
---

# DB2: How to get Timestamp from Sysdummy1

SYSIBM.SYSDUMMY1 is EBCDIC table, provided by DB2. The purpose is [to get](https://srinimf.com/2017/01/04/how-to-find-difference-of-two-dates-in-db2/) Current Date, Current Time etc. form this Table.

Related[DB2: The Real use of SYSDUMMY1 Table](https://srinimf.com/2015/10/20/how-sysibm-sysdummy1-different-from-other-catalog-tables/)

Example

```
[DB2 SELECT](https://srinimf.com/2015/10/19/differences-of-db2-select-sub-select-and-full-select/) 2+3 FROM SYSIBM.SYSDUMMY1
```

Output:

```
1
----
5
```

1 record(s) selected.

```
DB2 SELECT CURRENT DATE FROM SYSIBM.SYSDUMMY1
```

Output:

```
1
----------
05/04/[2011](https://srinimf.com/2011/03/31/happy-ugadi-2011/)
```

1 record(s) selected.

```
DB2 SELECT CURRENT TIMESTAMP FROM SYSIBM.SYSDUMMY1
```

Output:

```
1
--------------------------
[2011](https://srinimf.com/2012/01/01/2011-in-review/)-05-04-10.29.10.754000

1 record(s) selected.
```

Audio Post

*Listen using mobile on Sysdummy1*

Keep Reading

- [SQL Query to get DATE interval from SYSDUMMY1](https://srinimf.com/2017/01/04/how-to-find-difference-of-two-dates-in-db2/)DateJanuary 4, 2017
- [DB2: The Real use of SYSDUMMY1 Table](https://srinimf.com/2015/10/20/how-sysibm-sysdummy1-different-from-other-catalog-tables/)DateOctober 20, 2015
- [DB2- Date, Time, Timestamp](https://srinimf.com/2011/02/06/db2-date-time-timestamp/)DateFebruary 6, 2011

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2014%2F09%2F29%2Fdb2-timestamp-and-sysdummy%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2014%2F09%2Fpexels-photo-5028854.jpeg%3Ffit%3D1200%252C800%26ssl%3D1&description=DB2%3A%20How%20to%20get%20Timestamp%20from%20Sysdummy1)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2014/09/29/db2-timestamp-and-sysdummy/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2014/09/29/db2-timestamp-and-sysdummy/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2014/09/29/db2-timestamp-and-sysdummy/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2014/09/29/db2-timestamp-and-sysdummy/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20DB2%3A%20How%20to%20get%20Timestamp%20from%20Sysdummy1&body=https%3A%2F%2Fsrinimf.com%2F2014%2F09%2F29%2Fdb2-timestamp-and-sysdummy%2F&share=email)
-

### Like this:

Like Loading…
