问题标签 [truncated]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
mysql - Truncated incorrect INTEGER value casting not working MYSQL
I'm getting the Truncated incorrect INTEGER value error in MYSQL, when I execute the code below. I know the logic doesn't make much sense and that will change and I am more concert about the error. I have tried casting the whole case statement but I still get the same error message.
Here is the original statement
select
( count(case when v.SalesDate = v.SalesDate then v.Surname end) ) as x
from finaljoinalldata v
group by date(v.SalesDate)
order by date(v.SalesDate);
I have tried also
select
( count(CAST(case when v.SalesDate = v.SalesDate then v.Surname end) AS SIGNED) ) as x
from finaljoinalldata v
group by date(v.SalesDate)
order by date(v.SalesDate);
Any help will be appreciated. Thanks
mysql - 为什么我的数据被截断?警告 | 第1265章 列截断数据
我尝试将 NULL 添加到 date_of_birth 和 date_of_death,但这没有帮助。为什么数据会被截断?(特别是因为目前没有任何数据......)
另外,我根本不理解警告 1261。第 5 行与第 1-4 行没有什么不同。
谢谢!
以下脚本:
给我这些错误:
这是我的.csv: