• λ我爱Aspx >> C#.Net >> bbs的数据结构和存储过程(二)_ASP实例
  • bbs的数据结构和存储过程(二)_ASP实例

  • :aspxer  Դ:internet  :2007-4-28 23:45:08  ؼ:asp,数据
  • /*************************************************************************/

    /* */

    /* procedure : up_GetForumList */

    /* */

    /* Description: 取得版面列表 */

    /* */

    /* Parameters: None */

    /* */

    /* Use table: forum , bbsuser */

    /* */

    /* Author: bigeagle@163.net */

    /* */

    /* Date: 2000/2/10 */

    /* */

    /* History: */

    /* */

    /*************************************************************************/

    if exists(select * from sysobjects where id = object_id('up_GetForumList'))

    drop proc up_GetForumList

    go

    create proc up_GetForumList

    as

    select a.id , a.rootid , a.fatherid , a.layer , a.title , a.topiccount , a.description ,

    'UserID'=b.id , b.UserName , b.Email , b.Homepage , b.Signature

    from forum as a join BBSUser as b on a.Masterid=b.ID order by rootid , layer

    go

    select id , title , rootid from forum

    up_getforumlist

    /*************************************************************************/

    /* */

    /* procedure : up_InsertForum */

    /* */

    /* Description: 新建版面 */

    /* */

    /* Parameters: @a_strName : 版面名称 */

    /* @a_strDescription: 版面描述 */

    /* @a_intFatherID: 分类ID,如果是0说明是大分类 */

    /* */

    /* Use table: forum */

    /* */

    /* Author: bigeagle@163.net */

    /* */

    /* Date: 2000/4/23 */

    Ҷƪл˵?
  • һƪbbs的数据结构和存储过程(一)_ASP实例
    һƪbbs的数据结构和存储过程(三)_ASP实例