set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go

ALTER procedure [dbo].[proc_GetStoreBoxProductsForOther]
@userid int
as
begin
select storeid,shopid,shopname,canusetimes,unit,shopprice,isattach,
istime,displaypic,flashdir,iwidth,iheight,iszorz,typeid,displaymode,
userid,operation,oriposition,cemeteryid,displayout,isvipbuy from
view_storeandstorezheuangzhi where
userid=@userid
 and
usingout=0
and
parentid<=0
and
((heavenid in (select [cemeterysid] from [cemeterys] where [userid]=@userid)) or (heavenid='-1' or heavenid=''))
end
 
view_storeandstorezheuangzhi  --为视图

  

相关文章:

  • 2021-12-03
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-02-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-23
  • 2022-02-09
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案