下面是我的SQL语句,我现在需要java代码来实现根据短信息id查一条短信息
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[TBL_MESSAGE]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[TBL_MESSAGE]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[TBL_USER]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[TBL_USER]
GO
CREATE TABLE [dbo].[TBL_MESSAGE] (
[id] [int] IDENTITY (1, 1) NOT NULL ,
[note] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[sendUname] [varchar] (20) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[receiveUname] [varchar] (20) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[postTime] [datetime] NOT NULL ,
[readSign] [smallint] NOT NULL
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[TBL_USER] (
[name] [varchar] (20) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[pass] [varchar] (20) COLLATE Chinese_PRC_CI_AS NOT NULL
) ON [PRIMARY]
GO
|
|