Quantcast
Channel: How do I explicitly insert nulls into a parametized query? - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by Despatcher for How do I explicitly insert nulls into a parametized query?

$
0
0

Are you sure the params have been created by just setting the text of the SQL?

try

if Query.Params.count <> 0 then// set params..

Anyway why not make the SQL text:

'INSERT INTO crs_edocument (EDOC_ID, LINKAGE_TYPE) VALUES (999327, NULL)';

if you know the value is going to be null...


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>