当前位置:网站首页>将截断字符串或二进制数据
将截断字符串或二进制数据
2022-07-06 18:25:00 【C...D】
Error! [8152]System.Data.SqlClient.SqlException: 将截断字符串或二进制数据。语句已终止。
原因:数据库表中增加的字段数据类型与其他表相同字段的数据类型和大小要一致,否则会报“将截断字符串或二进制数据。语句已终止。”这种错误。
解决方法:
1、修改数据库字段大小;
2、加强数据强壮性,严格的输入判断。 防止添加的信息类型或者长度与数据库表中字段所对应的类型不符合。
边栏推荐
- HDU 4661 message passing (wood DP & amp; Combinatorics)
- Telnet,SSH1,SSH2,Telnet/SSL,Rlogin,Serial,TAPI,RAW
- Blackfly S USB3工业相机:缓冲区处理
- Golang foundation - data type
- Input and output of C language pointer to two-dimensional array
- Flir Blackfly S 工业相机:通过外部触发实现多摄像头同步拍摄
- ROS学习(22)TF变换
- Centos8 install MySQL 8.0 using yum x
- 字符串的相关编程题
- Ros Learning (23) Action Communication Mechanism
猜你喜欢
Yiwen takes you into [memory leak]
Errors made in the development of merging the quantity of data in the set according to attributes
MySQL execution process and sequence
ROS learning (24) plugin
Flir Blackfly S USB3 工业相机:白平衡设置方法
Introduction to microservice architecture
New job insights ~ leave the old and welcome the new~
百度飞将BMN时序动作定位框架 | 数据准备与训练指南 (下)
AcWing 345. Cattle station solution (nature and multiplication of Floyd)
Batch delete data in SQL - set in entity
随机推荐
AcWing 1142. 繁忙的都市 题解(最小生成树)
字符串的相关编程题
Image watermarking, scaling and conversion of an input stream
When grep looks for a process, it ignores the grep process itself
Shortcut keys commonly used in idea
Modify the system time of Px4 flight control
How to use strings as speed templates- How to use String as Velocity Template?
猫猫回收站
ROS学习(25)rviz plugin插件
设置Wordpress伪静态连接(无宝塔)
Scenario practice: quickly build wordpress blog system based on function calculation
Add PDF Title floating window
C语言【23道】经典面试题【下】
Analyze "C language" [advanced] paid knowledge [II]
centos8安裝mysql報錯:The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already ins
Flir Blackfly S 工业相机:自动曝光配置及代码
AcWing 1141. LAN problem solving (kruskalkruskal finding the minimum spanning tree)
ROS学习(十九)机器人SLAM功能包——cartographer
Long press the button to execute the function
Redis configuration class redisconfig