Skip to content

Tag: sql

explain differences between two different updates

I have 2 different update queries, one I created: my colleague preferred this one: He can’t explain which one should be better and neither can I. The only difference I have, is that the update on the second query crashes when there are no results to update. Can anyone explain what’s the difference…

jOOQ: Mocking DAO objects

jOOQ 3.5.0 I’m currently trying to write unit tests for a resource that is using jOOQs generated DAO objects. I’ve noticed one of the base classes (DAOImpl) in the DAO hierarchy has many final methods which makes it unfriendly to mock (I’m excluding byte code manipulators like Powermock as a…

Running sqlplus in background in Unix

I am trying to run an .sql file from sqlplus in Unix environment as a background process. I am connecting to Unix using Tectia or Putty, and I want sqlplus to continue running in background even if my terminal closes. This command works but when trying to start it in background it fails What is the right comm…