我想通过 Laravel Query Builder 在 SQL Server 表中插入一行。
我正在使用以下方法转换 unicode 字符:
mb_convert_encoding($value, 'UCS-2LE', mb_detect_encoding($value, mb_detect_order(), true))
ntext除字段外,一切正常。如果存在ntext字段,我无法插入行。我可以插入为NULL. 但我不能在该ntext字段中插入任何内容。
但插入其他类型工作正常。SQL Server 206 error当该ntext字段的数据不为空时,我得到了一个。
问题是什么 ?