0
votes

I am using the Bash shell and am new to shell scripting.

I have to insert the current system date and time into an Oracle table which has one "date" column (datatype is timestamp(6)) using a shell script.

How can I do it?

1
Why do you you have to do this in Bash? Oracle has sysdate. - Johnsyweb

1 Answers

0
votes

to get the time stamp from shell, you can use date +%s (long value) and insert into your table.