PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > 数据库 > SQL Server教程 > 正文

    SqlServer中使用参数传递前N条条件

    作者:admin来源:B5教程网浏览:时间:2020-09-30 00:07:50我要评论
    导读:SqlServer中使用参数传递前N条条件
    declare @topN int;   
    select @topN = 10;   
      
    select top (@topN) * from TableName  
    
    ​一定要用() 否则无效
    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-36-177-1.html
    相关热词搜索: 参数传递 sqlserver