阅读背景:

Golang将NULL插入sql而不是空字符串

来源:互联网 

I'm trying to insert data into a mysql database using golang. In the case where my value takes on an empty string, I would want to insert a null. How can I adjust the following to insert nulls instead of empty string? Thanks.I'm trying to insert data into a mysql database




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: