Skip to content Skip to sidebar Skip to footer

What Is The Date Type In Npgsql?

I am using postgreSQL database. I need to add 'Date' parametres with SQL query. What do I have to write where I wrote in the code 'XXX' Here is the source code: NpgsqlCommand RupC

Solution 1:

You can leave it with zero, i.e.

RupCmd.Parameters.Add(
     new NpgsqlParameter("@dno", NpgsqlTypes.NpgsqlDbType.Date, 0, "dat1"));

Post a Comment for "What Is The Date Type In Npgsql?"