USE [Test_Blog]
GO
/****** Object:  StoredProcedure [dbo].[db_blog_tags_gettags]    Script Date: 06/16/2010 13:58:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:  <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
ALTER PROCEDURE [dbo].[db_blog_tags_gettags]
(
 @field nvarchar(500)='*',
 @where nvarchar(500)
)
AS
BEGIN
 declare @sql nvarchar(3000)
 if @where<>''
      set @sql =' select top 1  '+@field+' from  tags where '+@where+''
  else
   set @sql=' select top 1  '+@field+' from  tags'
  exec(@sql)
END


exec db_blog_tags_gettags  @where= 'id>3'

相关文章:

  • 2021-07-08
  • 2022-12-23
  • 2022-02-20
  • 2021-07-31
  • 2022-12-23
  • 2021-06-13
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2021-11-20
  • 2021-12-31
  • 2022-12-23
  • 2021-09-05
相关资源
相似解决方案