--有板块表CREATE TABLE [dbo].[bord](
[bor_id] [int] IDENTITY(1,1) NOT NULL,
[bor_name] [varchar](20) NOT NULL,
[bor_description] [varchar](255) NOT NULL)
--用户表CREATE TABLE [dbo].[users](
[use_id] [int] IDENTITY(1,1) NOT NULL,
[use_name] [varchar](20) NOT NULL,
--主贴表CREATE TABLE [dbo].[topic](
[top_id] [int] IDENTITY(1,1) NOT NULL,
[fk_users] [int] NOT NULL,
[top_datetime] [datetime] NOT NULL,,
[fk_bord] [int] NOT NULL)
现在需要用一条SQL查处所有版块的信息,以及板块中主贴总数,最后回帖时间和回帖用户
SQL code:
insert into topic values ('变量的问题','请问各位大虾,我要声明一个int类型的变量怎么声明',3,getdate(),100,0,0,3,2)
insert into topic values ('常量的问题','请问各位大虾,我要声明一个int类型的常量怎么声明',3,getdate(),100,0,0,3,2)
insert into topic values ('if的问题','请问各位大虾,我不会用if,请各位教一下',3,getdate(),100,0,0,3,2)
insert into topic values ('for的问题','请问各位大虾,for咋使',3,getdate(),100,0,0,1,2)
insert into topic values ('while的问题','请问各位大虾,while咋写',3,getdate(),100,0,0,3,2)
insert into topic values ('while的问题','请问各位大虾,while咋写',3,getdate(),100,0,0,2,2)
insert into topic values ('while的问题','请问各位大虾,while咋写',3,getdate(),100,0,0,3,2)
格式如下:
bor_id bor_name bor_description [主贴总数] [最后回复
sqlserver2005 建立的数据库,与手持pda传输数据,最近突然出现无法传递数据的问题,pda端提示的错误时outofmemoryexception,但是pda上面的容量没有问题,
sqlserver的日子上的错误如下:
日期 2010-1-25 14:45: ......