哈哈,这里给你送分咯
我还是没理解。
现在我的操作都在Microsoft SQL Server Management Studio里面进行的。
创建表格:
create table tablename
{
id int primary key,
num float,
}
触发器:
create trigger tgr_tablename_insert
on tablename
for insert
as
set nocount on
declare @num float
select @num=num from inserted
插入语句:
insert into tablename values(1.58)
运行insert语句时,调试触发器,里面@num获取的值就成科学计数法了。 (貌似好像有的数字插入的时候不会成这个样子的数字)