SQL Server索引已创建

时间:2011-07-26 02:15:38

标签: sql-server-2008 indexing

如何通过此select语句创建索引。是否可以创建索引?

SELECT     
   U.UserName, U.LoweredUserName, U.LastActivityDate, 
   M.ApplicationId, M.UserId, M.Password, M.PasswordFormat, M.PasswordSalt, 
   M.MobilePIN, M.Email, M.LoweredEmail, M.PasswordQuestion, M.PasswordAnswer, 
   M.IsApproved, M.IsLockedOut, M.CreateDate, M.LastLoginDate, M.LastPasswordChangedDate, 
   M.LastLockoutDate, M.FailedPasswordAttemptCount, M.FailedPasswordAttemptWindowStart, 
   M.FailedPasswordAnswerAttemptCount, M.FailedPasswordAnswerAttemptWindowStart, M.Comment,   
   P.FID, P.FUSERID, P.FNAME, P.FNRIC, P.FGENDER, P.FDESIGNATION, P.FCADDRESS, P.FCCITY, 
   P.FCPOSTCODE, P.FCSTATE, P.FCTEL, P.FCHP, P.FCFAX, P.FCEMAIL, P.FORG, P.FOADDRESS, 
   P.FOCITY, P.FOPOSTCODE, P.FOSTATE, P.FOTEL, P.FOHP, P.FOFAX, 
   P.FOEMAIL, P.FCREATED, P.FASABOVE, P.FIMGTITLE, P.FMIMETYPE, P.FIMGDATA, P.FCOUNTRY, 
   P.FRESEARCHID, P.FCOMPLETED, P.FORGOTHERS, P.FORGCATEGORY, P.FORGINDUSTRY
FROM         
   dbo.aspnet_Users AS U 
LEFT OUTER JOIN
   dbo.aspnet_Membership AS M ON U.UserId = M.UserId 
LEFT OUTER JOIN
   dbo.CUR_USERPROFILE AS P ON U.UserId = P.FUSERID

0 个答案:

没有答案