Thanks !! It worked
--
View this message in context:
http://groovy.329449.n5.nabble.com/Oracle-Insert-Data-from-one-table-to-another-table-using-Groovy-tp5734285p5734338.html
Sent from the Groovy Dev mailing list archive at Nabble.com.
")
> { row->
> sql.executeInsert "INSERT INTO A (ID, Name) VALUES ($row.ID,$row.Name)"
> }
>
>
>
> --
> View this message in context:
> http://groovy.329449.n5.nabble.com/Oracle-Insert-Data-from-one-table-to-another-table-using-Groovy-tp5734285p5734303.html
> Sent from the Groovy Dev mailing list archive at Nabble.com.
from A where ID not in (select id from B)")
{ row->
sql.executeInsert "INSERT INTO A (ID, Name) VALUES ($row.ID,$row.Name)"
}
--
View this message in context:
http://groovy.329449.n5.nabble.com/Oracle-Insert-Data-from-one-table-to-another-table-using-Groovy-tp5734285p5734
t;
}
--
View this message in context:
http://groovy.329449.n5.nabble.com/Oracle-Insert-Data-from-one-table-to-another-table-using-Groovy-tp5734285p5734303.html
Sent from the Groovy Dev mailing list archive at Nabble.com.
It does seem a pity that Groovy only provides drivers of SQL statements
when Groovy is a language superb for DSLs and builders.
Python is very similar to Groovy in this respect and Python has
SQLAlchemy which provides the low level SQL driving stuff, but also
provides an expression language, DSL a
e.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:63)
>
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:291)
>
> at ConsoleScript1$_run_closure1.doCall(ConsoleScript1:8)
>
>
>
>
> --
> View this message in context:
> http://g
message in context:
http://groovy.329449.n5.nabble.com/Oracle-Insert-Data-from-one-table-to-another-table-using-Groovy-tp5734285p5734298.html
Sent from the Groovy Dev mailing list archive at Nabble.com.
erpolation
From: GroovyBeginner
To: d...@groovy.incubator.apache.org,
Date: 07/26/2016 02:46 AM
Subject: Oracle Insert Data from one table to another table using
Groovy
I have a requirement of inserting the data from table A into table B and
am
using Oracle database. My co
On 26.07.2016 08:46, GroovyBeginner wrote:
I have a requirement of inserting the data from table A into table B and am
using Oracle database. My condition is am going to insert only those records
which are not present in table B and am facing an issue of retrieving the
current row column values
lso is there any better approach of doing this in terms of
security and performance.
--
View this message in context:
http://groovy.329449.n5.nabble.com/Oracle-Insert-Data-from-one-table-to-another-table-using-Groovy-tp5734285.html
Sent from the Groovy Dev mailing list archive at Nabble.com.
10 matches
Mail list logo