zoukankan      html  css  js  c++  java
  • sqlserver

    1. 创建存储过程

    create or replace procedure proc_1
    (
    @parameter1 varchar(255),
    @parameter2 int,
    @parameter3 varchar(255)
    )
    
    as 
    
    declare  # 声明变量
    @name varchar(255),
    @length int,
    @width int,
    @height int
    
    begin  # 一个begin对应一个end,代表一个整体(类似同一等级的缩进)
        set @name='需要一个字符串'
        select @length=length, @width=width, @height=height from table_name_1 where name=@name
       if @length > 0 and @width > 0 and @height > 0
        begin
          select @Return_Code='满足条件!'
          return
        end
       else
        begin
          select @Return_Code='不满足条件!'
          return
        end
    end
  • 相关阅读:
    UVa 11389
    uva 1418
    uva 10905 Children's Game
    uva 471
    UVA 1508
    Uva120 Stacks of Flapjacks
    UVA 10020 Minimal coverage
    UVA434
    UVa 311
    决策树算法
  • 原文地址:https://www.cnblogs.com/JackShi/p/13964122.html
Copyright © 2011-2022 走看看