ارور C# از يك دستور ساده sql
سلام
دوستان ويژوال استوديو از دستور زير اين خطا رو مي گيره
incorrect syntax near s.
sc.CommandText = "select p.PatientID,p.PName,p.PLastName,p.PIllType," +
"s.HeartRate,s.BloodPressure,s.ResPiratoryRate " +
"from PStatus s,Patient p" +
"where (s.PatientID=p.PatientID) and" +
"(p.PAge <= 28 and p.PAge >= 1) and" +
"(s.RespiratoryRate < 40 or s.RespiratoryRate > 60 or" +
"s.HeartRate < 120 or s.HeartRate > 160 or" +
"s.BloodPressure < 6)";
نقل قول: ارور C# از يك دستور ساده sql
نقل قول:
نوشته شده توسط
vahid.bz
سلام
دوستان ويژوال استوديو از دستور زير اين خطا رو مي گيره
incorrect syntax near s.
sc.CommandText = "select p.PatientID,p.PName,p.PLastName,p.PIllType," +
"s.HeartRate,s.BloodPressure,s.ResPiratoryRate " +
"from PStatus s,Patient p" +
"where (s.PatientID=p.PatientID) and" +
"(p.PAge <= 28 and p.PAge >= 1) and" +
"(s.RespiratoryRate < 40 or s.RespiratoryRate > 60 or" +
"s.HeartRate < 120 or s.HeartRate > 160 or" +
"s.BloodPressure < 6)";
سلام دوست عزیزاون قطعه کد که مشخص نموده ام منظورتون چیه اسم جدوله؟
نقل قول: ارور C# از يك دستور ساده sql
نقل قول: ارور C# از يك دستور ساده sql
بین دستورات (رشته هایی که با + به هم چسبوندی) و ابتدای هر رشته space بذار.
بهتره به اینصورت عمل کنی:
string s=@"my string
it is new line
and new line,....
";