الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

مشكلة في Between

مغلق
بدأه theAviator6699 في 5 نوفمبر 2006 · 1 رد · 446 مشاهدة · في قواعد بيانات Microsoft SQL Server
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

مشكلة Between two strings مثلا

Select * from AccMast Where Code Between ' 100' and '500'

هذه الكويري ترجع نتائج غير صحيحة لانه يعتبر ان 45 من ضمن المجموعة

جربت ال cast حتى احول من سترينج الى رقم ولكن بدون جدوى

ما الحل برايكم

مشكوووورين

#2

Select * from AccMast Where cast(Code as int) Between 100 and 500

When all else fails, read the instructions.

If there is a possibility of several things going wrong the one that will cause the most damage will be the one to go wrong.

No Matter how many times you repeat, there will be someone not listening .

To beat the bureaucracy, make your problem their problem

55926083.png

هذا الموضوع مغلق.

مواضيع مشابهة