الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

البحث عن الحروف فقط باستخدم SQL

Featured Replies

بتاريخ:

هل من طريق يمكن بها البحث عن السجلات التى تحتوى فى حقل معين عن حروف فقط بدون أرقام علما بأن الحقل معرف فى الجدول من النوع varchar ويمكن أن يحتوى على حروف او أرقام أو الاثنين فقط
والمطلوب هو البحث عن عن السجلات التى تحتوى فى حقل معين عن حروف فقط بدون أرقام

بتاريخ:

الاخ الكريم
اليك الحل
واريد من الاخوة الكرام حل آخر اذا امكن مع ان هذا الحل هو اكيد 100%
حيث استخدمت instr وهو يفحص موقع الحرف او الرقم في الكلمة فإذا لم يجده يرجع صفر فإذا اردت ان يظهر الكلمات التي فيها حرف فقط اجعل النتيجة تساوي صفر اما اذا كان العكس فاجعل النتيجة لا تساوي صفر

select record_name   -- or many record name
from table_name where instr(record_name,0)=0 and instr(record_name,1)=0 and instr(record_name,2)=0 and instr(record_name,3)=0 and instr(record_name,4)=0 and instr(record_name,5)=0 and instr(record_name,6)=0 and instr(record_name,7)=0 and instr(record_name,8)=0 and instr(record_name,9)=0



حيث record_name اسم الحقل
table_name اسم الجدول

بصراحة سؤال رهيب اعجبني كثيرا

بتاريخ:
  • كاتب الموضوع

أخى العزيز جربتها و اشتغلت وجزاك الله خير

بتاريخ:

اخى الكريم / acadmy

بفرض ان الحقل المراد البحث فيه يسمى comments داخل جدول Employees
فيمكن استخدام الجملة كما يلى

select last_name from employees where comments not like '%1%' and comments not like '%2%' and comments not like '%3%' and comments not like '%4%' and comments not like '%5%' and comments not like '%6%' and comments not like '%7%' and comments not like '%8%' and comments not like '%9%' and comments not like '%0%'


مع تحياتى

تم تعديل بواسطة Osama Soliman

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.