Argument data type text is invalid for argument 1 of replace function

今天给webapi添加了搜索,结果数据库显示了这个错误,

Argument data type text is invalid for argument 1 of replace function

查了一下发现是字段类型ntext的问题,解决办法也很简单,改用nvatchar(max)就可以了

参考文献

https://stackoverflow.com/questions/22684815/argument-data-type-text-is-invalid-for-argument-1-of-lower-function

posted @ 2022-10-14 12:34  Yu-Core  阅读(232)  评论(0编辑  收藏  举报