2014-01-20 4 views

ответ

1

Попробуйте этот код .. принять ответ, если это решит вашу проблему.

DB.withConnection { implicit c => 
    SQL("INSERT INTO userTable values({userId},{userName})").on("userId" -> "User's id", "userName" -> "your_name").executeInsert(); 
} 
+0

Спасибо дружище !! оно работает. –

1
DB.withConnection { implicit c => 
SQL("insert into userTable values({userId},{userName})").on("userId" -> value1, "userName" -> value2).executeInsert(); 
} 
Смежные вопросы