select * form table where mod(数值,1) = 0
sqlserver
select * from table where 数值 = round(数值,0)
create TRIGGER tr_A_Insert ON AWITH ENCRYPTION
for insert
AS
BEGIN
DECLARE @a VARCHAR(100)
SET @a = (select a FROM inserted)
IF isnumeric(substring(@a,1,8)) = 1 and floor(substring(@a,1,8))=substring(@a,1,8)
begin
INSERT INTO B(b) VALUES(@A)
end ELSE
IF isnumeric(substring(@a,1,4)) = 1 and floor(substring(@a,1,4))=substring(@a,1,4)
BEGIN
INSERT INTO C(c) VALUES(@A)
END
END
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)