View_UserInfo.sql 1.1 KB

1234567891011121314151617181920212223242526
  1. 
  2. /*
  3. ***** 对象: View [dbo].[View_UserInfo] 用户信息视图 脚本日期: 04/27/2015 15:05:55 *****
  4. 字段:
  5. UserID 员工ID
  6. UserName 员工名
  7. dimission 是否在职
  8. loginnoID1 指纹ID1
  9. loginnoID2 指纹ID2
  10. [level] 级别(好像没用到)
  11. */
  12. CREATE VIEW [View_UserInfo]
  13. AS
  14. SELECT
  15. User_Account as Account,
  16. User_Password as PWD,
  17. User_EmployeeID AS UserID,
  18. [User_Name] AS UserName,
  19. User_Status as dimission,
  20. User_Sex AS Sex,
  21. User_FirstFingerprintID AS loginnoID1,
  22. User_SecondaryFingerprintID AS loginnoID2,
  23. 0 as [level]
  24. FROM dbo.tb_ErpUser