表A 表B
insert into #A (SYSTEMDATE,DEBIT,REALINAMOUNT)
select INDATE,0,convert(decimal(12,2),REALINAMOUNT) from B
会报错:
Implicit conversion from datatype 'VARCHAR' to 'DECIMAL' is not allowed. Use the CONVERT function to run this query.
数据库是sybase
是我写错了 还是不允许
不允许该怎么办呢?
跪求。。。。。。
------解决方案--------------------
先试试这个查询语句能执行正常吗?
- SQL code
select INDATE,0,convert(decimal(12,2),REALINAMOUNT) from B