Parameters
- i
Return Value
The value of the specified column.
Call IsDBNull to check for null values before calling this method.
static void GetMyInt64(DB2Connection myConnection) { DB2Command cmd = new DB2Command("SELECT * FROM AllTypes"); cmd.Connection = myConnection; myConnection.Open(); try { DB2DataReader reader = cmd.ExecuteReader(); reader.Read(); long recievedLong = reader.GetInt64(reader.GetOrdinal("Int64Col")); reader.Close(); } finally { myConnection.Close(); } }