I want to insert into postgres database. So some of the variables have NULL data type. Does anyone know how to not insert the NULL values on postgres please?... the whole point is that I actuall want to know how many data were inserted into the databas3...I used pg_affected_rows() and it counted everything..including NULL values.😒☺️
You could do the count in php no?
No.....on my insert statement, I hard coded it to a fixed number and each of those numbers might have a value or they might not. I was thinking of a way to know only the ones with values added to the database from the database function.
Обсуждают сегодня