Mark McNary via DBMonster.com wrote:
[color=blue]
> I have a developer getting a SQL0104N on an insert statement. He is
> inserting a list of values into a table and instead of putting 'NULL' into
> the statement, the program just puts a placeholder comma. He is getting
> the following error:
>
> SQL ERROR ->[IBM][CLI Driver][DB2/NT] SQL0104N An unexpected token ",,"
> was found following "000000,0.000000,0,0,". Expected tokens may include:
> "<rvc_element>". SQLSTATE=42601
>
> The two commas in the unexpected token field are supposed to be inserted
> as NULL into NULLable columns.[/color]
This is just a plain syntax error. DB2 doesn't know that you really meant
what you wrote and it also doesn't know the exact semantics that you want
to have applied. Have a look here for the syntax supported by INSERT:
http://publib.boulder.ibm.com/infoce...n/r0000970.htm
--
Knut Stolze
Information Integration
IBM Germany / University of Jena