有谁知道是否可以使用 MYSQLI bind_param 将 NULL 插入到列中.
Does anyone know if it is possible to insert NULL into a column with MYSQLI bind_param.
我有一种情况,有时我想在 bind_param
中将一列设置为 null.像这样...
I have a situation where sometimes I want to set a column to null in bind_param
.
Like so...
$column2 = "NULL";
$insert_data->bind_param('ss', $column1,$column2);
显然,这只是将 NULL 作为字符串写入列.我试过 null
和