# Sql last value can only store timestamp?

**URL:** <https://discuss.elastic.co/t/sql-last-value-can-only-store-timestamp/193926>\
**Category:** Logstash\
**Created:** [August 6, 2019, 5:36am UTC](https://discuss.elastic.co/t/sql-last-value-can-only-store-timestamp/193926 "2019-08-06T05:36:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [August 6, 2019, 5:36am UTC](https://discuss.elastic.co/t/sql-last-value-can-only-store-timestamp/193926/1 "2019-08-06T05:36:22Z")

</div>

Hello,

Can anyone help me in this?  
can sql last value stores only timestamp?  
I am trying to use one number column using jdbc plugin and comparing it with sql last value.  
I am getting an error, SQLSyntaxErrorException: ORA-00904: "SQL\_LAST\_VALUE": invalid identifier.

Regards,  
Priyanka

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 6, 2019, 12:27pm UTC](https://discuss.elastic.co/t/sql-last-value-can-only-store-timestamp/193926/2 "2019-08-06T12:27:24Z")

</div>

> [@pyerunka](#):
>
> can sql last value stores only timestamp?

No. [tracking\_column\_type](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html#plugins-inputs-jdbc-tracking_column_type) can be either timestamp or numeric.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 3, 2019, 12:37pm UTC](https://discuss.elastic.co/t/sql-last-value-can-only-store-timestamp/193926/3 "2019-09-03T12:37:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
