摘要: ----一元二次方程存储过程alter proc yiyuanerci@a int,@b int,@c intasbegin if @a=0 begin --print '不是一元二次方程' return 1 end else begin declare @sqrt decimal(18,2)... 阅读全文
posted @ 2014-12-02 14:07 ヾBailey灬 阅读(139) 评论(0) 推荐(1)
摘要: --输入参数的存储过程alter proc jiayibai@shuru int,@canshu intasbegin print @shuru+@canshuendgoexec jiayibai 10,120 阅读全文
posted @ 2014-12-02 14:04 ヾBailey灬 阅读(76) 评论(0) 推荐(1)
摘要: -----判断是否是一元二次方程declare @a int,@b int,@c int,@x1 decimal(18,2),@x2 decimal(18,2)set @a=1set @b=5set @c=4if @a=0begin print '不是一元二次方程,因为a=0'endelsebegi... 阅读全文
posted @ 2014-12-02 14:03 ヾBailey灬 阅读(271) 评论(0) 推荐(1)