我有一个简单的称呼,为最佳质问/优化而制定守则的最佳方式是什么?
下面是我。
ALTER PROCEDURE dbo.OccupierGet
(
@OccupierID int = 0
)
AS
/* SET NOCOUNT ON */
--Get all details that can be editted.
select TOP 1 ID,AccountNumber,FirstName,LastName,Company,Telephone,Notes,
OccupierTypeID,Address,Address2,City,Country,Telephone2,HomePhone,CellPhone,WorkPhone,Fax,EmailAddress
from dbo.Occupier
where ID = @OccupierID
RETURN
建设q沟,作为str子和 run子,并通过参数,是否更好? 我会问,因为盘问和参数Im使用。
Thank you! Tim