MySQL-1292截断了错误的DOUBLE值:

时间:2019-07-25 04:34:10

标签: mysql

在Mysql 8.0.16中编译视图时出现错误。当我用case语句注释这两个条件时,没有错误,并且能够编译视图。

我认为这种情况下的单引号>>> holding.valuation_amt_pcy <'1'应该可以解决问题,但事实并非如此。

and     case when pfgrp.rpt_part in ('PARTC', 'PARTD') and holding.valuation_amt_pcy < '1' then 'N' else 'Y' end = 'Y'
and     case when pfgrp.rpt_part in ('PARTC', 'PARTD') and (holding.irda_main_category in ('A') or holding.irda_category_code in ('SGGB','SGGL','SGOA','SGGE','EGMF', 'EETF', 'EMPG', 'OMGS', 'OMPG','CGSB','CTRB')) then 'N' else 'Y' end = 'Y'

Error thrown by MySQL 8.0.16
1292 Truncated incorrect DOUBLE value: 'PARTC'
1292 Truncated incorrect DOUBLE value: 'PARTD'
1292 Truncated incorrect DOUBLE value: 'PARTC'
1292 Truncated incorrect DOUBLE value: 'PARTD'

0 个答案:

没有答案