各位大俠:
informix中
運行語句insert into testfile values (8,'t')出錯(第二個欄位是boolean類型的)
Error: Could not insert new row into the table. (State:S1000, Native Code: FFFFFEF1)
Error: User Defined Routine (cdb_vgfinsert) execution failed. (State:S1000, Native Code: FFFFD9C1)
運行insert into testfile values (8,'true')也出錯
Error: It is not possible to convert between the specified
types. (State:22008, Native Code: FFFFFB14)
請幫一下忙,謝謝!
------解决方案--------------------------------------------------------
1、修改成0、1试试;
2、建立一张表,有BOOLEN类型字段,SELECT 此字段看看结果。
------解决方案--------------------------------------------------------
insert into testfile values (8,'t')
这一句没有问题
表上是不是有触发器啊?
------解决方案--------------------------------------------------------
建议不要用Boolean型,用char(1), check 'Y/N'