I have a database made up a single table with several fields, one of which is a phone number that is stored as a NUMERIC. Because the phone number is 10 digits, in my code I have captured the variable as a LONG.
My question is, in the insert statement, how do I pass a NULL value? Is this possible at all? I can’t assign a null value to the LONG variable, so I’m wondering how to go about doing this…
If you desperately need to use numerics for the phone number, why not just code a non-existing phone number into something like 0L or -1L?
Edit: Btw, you say that the database is limited to numeric format. Does the same go for the java side?
Should more or less do all you need, right?