import "github.com.pingcap.tidb.util.types" // Create a Datum representing the integer '5' d := types.NewIntDatum(5)
import "github.com.pingcap.tidb.util.types" // Create a Datum representing the string 'hello' d := types.NewStringDatum("hello")
import "github.com.pingcap.tidb.util.types" // Create a Datum representing the integer '5' d := types.NewIntDatum(5) // Get the underlying integer value val := d.GetInt64()Overall, `Datum` is a very powerful and flexible type in TiDB, allowing developers to work with values of any data type.