How to insert Big Integer in prepared statement java
<p>I want to insert a Big integer value using prepared statement, i have one string variable called xid (41527820021925053) </p>

<pre><code>    preparedStatement = conn.prepareStatement(sql);
    preparedStatement.setObject(1,XOBJ);
    preparedStatement.setObject(2,YOBJ);
    preparedStatement.setBigInteger(3, xid);
    preparedStatement.setInt(4, 23);
    preparedStatement.executeUpdate();
    preparedStatement.close();
</code></pre>

<p>I am new to this how to achieve this.</p>