Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Native SQL - update timestamp.

Former Member
0 Likes
899

Hello all,

I have to write native sql code to update the date and time stamp on an oracle database in the format 22/05/2009 02:37:33

I was able to update date by passing 22-MAY-2009 through the native sql, how do i update time ? Any ideas?

4 REPLIES 4
Read only

Kanagaraja_L
Active Contributor
0 Likes
710

Just chk your existing DB DATE and Time which format it was stored.

Kanagaraja L

Read only

0 Likes
710

How does that matter. All I am doing is passing my date through a variable in the native sql. it has no relation with my system settings

Read only

former_member222860
Active Contributor
0 Likes
710

you can define a time variable uisng sy-uzeit.

It gives the time format you've mentioned

data: v_time like sy-uzeit.
write:/ v_time.

Read only

Former Member
0 Likes
710

Found the solution. I was supposed to use to_date oracle function in my native sql