commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yong lin" <showsscel.of...@gmail.com>
Subject Re: [jelly] Generate value for "now" and insert it into multiple TIMESTAMP columns with jelly:sql
Date Fri, 01 Sep 2006 01:16:51 GMT
The java.sql.Timestamp include data and time,if you only need time use
java.sql.Time.

2006/8/30, Dion Gillard <dion.gillard@gmail.com>:
>
> Use core:new to create a new java.util.Date object and use the time of
> that to create a java.sql.Timestamp?
>
> On 8/30/06, Karr, David <david.karr@wamu.net> wrote:
> > I have a jelly script using jelly:sql.  It works well.  I now have to
> > add TIMESTAMP columns to a bunch of tables I'm defining in the script,
> > and I want to define a single value at the top of the script,
> > representing the current time value, and insert that in all my "insert"
> > references.
> >
> > I've defined a tag that takes a table name and a "values" attribute, and
> > inserts a new row with those values.
> >
> > This question combines both Jelly and Oracle issues, but can anyone
> > provide a hint on how to best do this?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-user-help@jakarta.apache.org
> >
> >
>
>
> --
> http://www.multitask.com.au/people/dion/
> "If you even dream of beating me you'd better wake up and apologize" -
> Muhammad Ali
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message