居然没有人回答,是不是给20分太少了呢?没有办法啊,总就200分
知道什么问题了
@height dec(3,2)

解决方案 »

  1.   

    if object_id('checklower') is not null
    drop procedure checklower
    go
    create procedure checklower
    @height dec
    as
    if @height=0
    begin
    print'error,cannot zero'
    return
    end
    else
    begin transaction
    select sno,sname,sex,height from students where students.height<=@height
    commit
    print'have do it'
    go
      

  2.   

    不知道你表students结构,当然看起来是没错的啦.但我有点疑问?
    begin transaction
    select sno,sname,sex,height from students where students.height<=@height
    commit你只是取数据,用事务没有意义吧?