Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is an indicator variable and why should I use it?

indicator
0
Posted

What is an indicator variable and why should I use it?

0

Indicator variables are used to explicitly handle NULL values. When you SELECT or FETCH a NULL value into a host variable/array an “ORA-01405: fetched column values is NULL” run-time error will result. This behaviour was introduced with Oracle7 when you recompiled your programs with the DBMS=V7 (the default) precompiler option. One workaround for this is to use the NVL() function to prevent the selection of NULL values.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123