1. select *,cons_tx_id from in_consumed
Where cons_TX_ID>20091207100001
2. select cons_tx_id from in_consumed
Where cons_TX_ID>20091201100001
第一个SQl语句运行没有问题,第二个就出现错误“Error converting data type varchar to numeric”。
CONS_TX_ID的类型是Char,并且数据库中CONS_TX_ID没有空值和NUll值。
请问,这到底是什么原因造成的?
谢谢了!
...全文
8775打赏收藏
Error converting data type varchar to numeric -- 怪问题
1. select *,cons_tx_id from in_consumed Where cons_TX_ID>20091207100001 2. select cons_tx_id from in_consumed Where cons_TX_ID>20091201100001 第一个SQl语句运行没有问题,第二个就出现错误“Error converting data type varchar to numeric”。 CONS_TX_ID的类型是Char,并且数据库中CONS_TX_ID没