樱花!好美的樱花!
樱花!好美的樱花!在大夫山公园照的[ 本帖最后由 忧郁小孩 于 2009-3-6 09:35 编辑 ] 是很美的,我这也看到很多。 哗好靓........... 华农离哪里最近 我又想去 我到世界之窗都睇过啦。。 #av%123 未见过来 喜欢,那种粉粉嫩嫩的感觉 这就是樱花啊~~~呵呵~~
有和服MM哦 好靓的樱花! 改天我也去看看 我现在在市桥这边 樱花香吗? 大夫山的樱花节,没有去看过。#av%0021 喔喔。。。。
風信子好似好清楚喔 SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'.') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE .(
IDENTITY(1,1) NOT NULL,
(10) NOT NULL,
(30) NOT NULL,
(30) NOT NULL,
(15) NOT NULL,
(30) NOT NULL,
NULL,
NOT NULL CONSTRAINT DEFAULT (0),
(10) NULL
) ON
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'.') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE .(
IDENTITY(1,1) NOT NULL,
(20) NOT NULL,
(25) NOT NULL,
(25) NOT NULL,
(20) NOT NULL,
(20) NULL,
(20) NULL,
(20) NULL,
NOT NULL CONSTRAINT DEFAULT (0),
NOT NULL CONSTRAINT DEFAULT (0),
NOT NULL CONSTRAINT DEFAULT (0),
(70) NULL,
(70) NULL,
(18, 2) NOT NULL CONSTRAINT DEFAULT (0),
(200) NULL
) ON
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'.') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE .(
(50) NOT NULL,
(50) NOT NULL,
(255) NOT NULL,
NOT NULL
) ON
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'.') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
BEGIN
EXEC dbo.sp_executesql @statement = N'
/*
函数名称: gem_GetRecordPage
函数功能: 获取指定页的数据
参数说明: @tblName 包含数据的表名
@fldName 关键字段名
@PageSize 每页记录数
@PageIndex 要获取的页码
@OrderType 排序类型, 0 - 升序, 1 - 降序
@strWhere 查询条件 (注意: 不要加 where)
作 者: 王远洋
创建时间: 2005-05-01
修改时间: 2005-05-01
*/
CREATEPROCEDURE .
@tblName varchar(255), -- 表名
@fldName varchar(255), -- 字段名
@PageSize int = 10, -- 页尺寸
@PageIndex int = 1, -- 页码
@OrderType bit = 0, -- 设置排序类型, 非 0 值则降序
@strWhere varchar(8000) = '''', -- 查询条件 (注意: 不要加 where)
@strGotFields varchar(1000) = ''*'' -- 需要返回的列
AS
declare @strSQL varchar(6000) -- 主语句
declare @strTmp varchar(1000) -- 临时变量
declare @strOrder varchar(500) -- 排序类型
if @OrderType != 0
begin
set @strTmp = ''<(select min''
set @strOrder = '' order by ['' + @fldName + ''] desc''
end
else
begin
set @strTmp = ''>(select max''
set @strOrder = '' order by ['' + @fldName +''] asc''
end
set @strSQL = ''select top '' + str(@PageSize) + @strGotFields + '' from [''
+ @tblName + ''] where ['' + @fldName + '']'' + @strTmp + ''([''
+ @fldName + '']) from (select top '' + str((@PageIndex-1)*@PageSize) + '' [''
+ @fldName + ''] from ['' + @tblName + '']'' + @strOrder + '') as tblTmp)''
+ @strOrder
if @strWhere != ''''
set @strSQL = ''select top '' + str(@PageSize) + @strGotFields + '' from [''
+ @tblName + ''] where ['' + @fldName + '']'' + @strTmp + ''([''
+ @fldName + '']) from (select top '' + str((@PageIndex-1)*@PageSize) + '' [''
+ @fldName + ''] from ['' + @tblName + ''] where '' + @strWhere + '' ''
+ @strOrder + '') as tblTmp) and '' + @strWhere + '' '' + @strOrder
if @PageIndex = 1
begin
set @strTmp = ''''
if @strWhere != ''''
set @strTmp = '' where ('' + @strWhere + '')''
set @strSQL = ''select top '' + str(@PageSize) + '' * from [''
+ @tblName + '']'' + @strTmp + '' '' + @strOrder
end
exec (@strSQL)
页:
[1]
2