hibernate 操作數據庫視圖
GO
/****** 對象: View [dbo].[view_ul] 腳本日期: 10/30/2013 16:45:35 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[view_ul]
AS
SELECT dbo.tt_user.id, dbo.tt_user.name, dbo.tt_user.password, dbo.tt_user_log.log_id, dbo.tt_user_log.remark
FROM dbo.tt_user INNER JOIN
dbo.tt_user_log ON dbo.tt_user.id = dbo.tt_user_log.user_id
GO