1
SQL Server에서 테이블을 업데이트하기위한 저장 프로 시저입니다.하지만 문이 잘못되어 작동하지 않을 수 있습니다.SQL Server 업데이트 문
Update pc.PatientCopayId, pc.amount, pc.patientid, pc.apptid ,p.PaymentId,p.PaymentDate,p.PayorType,p.PaymentMethod,
p.RefNumber,p.PaymentAmount,p.PayorId,pt.LastFirstName As PatientName,
ISNULL((SELECT note FROM dbo.PatientNote WHERE NoteTypeId = 28 AND KeyValue = pc.PatientCopayId),'') AS Note
from [dbo].[PatientCopay] pc, dbo.pymt_Payment p, dbo.Patient pt
where ApptId = @ApptId
and p.PaymentId = pc.Paymentid
And pt.PatientId = p.PayorId
가치와 의미는
pc.amount, = @PaymentAmount
pc.patientid, = @PatientId
pc.apptid , = @ApptId
p.PaymentId, = @PaymentId
p.PaymentDate, = @PaymentDate
p.PayorType, = @PayorType
p.PaymentMethod, = @PaymentMethod
p.RefNumber, = @RefNumber
p.PaymentAmount, = @PaymentAmount
p.PayorId, = @PayorId