You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible I'm missing something, but how do you enter null values in for columns?
For example, giving the code:
type Userinfo struct {
Uid int `PK`
Age int
Departname string
Created time.Time
}
var saveone Userinfo
saveone.Username = "Test Add User"
saveone.Departname = "Dept"
saveone.Created = time.Now()
orm.Save(&saveone)
How would I enter a NULL value for Age? This code will insert a "0" for Age.
The text was updated successfully, but these errors were encountered:
It's possible I'm missing something, but how do you enter null values in for columns?
For example, giving the code:
How would I enter a NULL value for Age? This code will insert a "0" for Age.
The text was updated successfully, but these errors were encountered: