34,594
社区成员
发帖
与我相关
我的任务
分享
--比如一个表tb中一个字段col,设置为money型
insert into tb
select $125
--插入一条数据
select * from tb
--结果出来的是125,而不是$125?
create table tb(col money)
insert into tb
select $125
--插入一条数据
select '$'+convert(varchar,col) from tb
/*
-------------------------------
$125.00
(1 行受影响)
*/
go
drop table tb