Hello all,
Let me know if the new docu on
http://scala.sygneca.com//libs/dbc
answers your question.
cheers,
Burak
p.s.: you'd use ("CellName" in "CellIndex")==name for the whereclause.
It's the 'in' which turns that parenthesized thingy into a
StatementExpression. insert is not very nicely supported yet, but Gilles
is working on it.
S.Y.Shah wrote:
> HI All,
> I am new to SCALA, i just wanted to convert some of my JDBC
> code to SCALA dbc. I looked at an example of dealing with databases on
> SCALA WIKI. But i have more complex queries of insert and select. Can
> any body provide me some pointers which help me to put my queries in
> right syntax to executStatment of SCALA. Two of my queries are as below..
> ////////////
> "Select
> CellName,Layer,AnatomicalType,ElectrophysiologicalType,GeneticType,Connections,Reconstructed,CellIndex.Comments,Age,Species,Gender,performer,Date_d,Date_m,Date_y,Region,weight
>
> from CellIndex,ExpIndex where CellName='"+name+"'"
> ///////////////////
> "insert into ConnectionIndex
> values(\""+conname+"\",\""+contype+"\",\""+sytype+"\",\""+precel+"\",\""+postcel+"\",\""+cmnts+"\",\""+eid+"\",\""+conid+"\")"
>
> //////////////////
>
> Best Regards,
> yousaf
>
--
Burak Emir
http://lamp.epfl.ch/~emir