الانتقال إلى المحتوى
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.

اختيار الوقت من التاريخ

Featured Replies

بتاريخ:

كيف لي ان اختار الوقت من حقل به وقت وتاريخ مع العلم ان هذا الحقل (VARCHAR) وليس (DATE)
على سبيل المثال الحقل به : 2/6/2011 23:30 حيث 23:30 هي الساعة , كيف لى ان اختار هذه الساعة فقط ومن ثم اقوم بطرحها من حقل اخر فيه ساعات فقط وهو ايضا
(VARCHAR)

باختصار : الحقل الاول : تاريخ + وقت
الحقل الثاني : وقت فقط
اريد اختيار الوقت من الحقل الاول وطرح هذا الوقت من الحقل الثاني

بتاريخ:

you can use to_char function like that:

to_char('12/12/2012 20:20','HH:MI') 


it will return with just the time and you can subtracted from other varchar

Best regards,

Eng. Saeed H. Keshk

System Analyst - Riyadh Municipality

Mobile KSA : (+966 54) 023-3171

Mobile EGYPT : (+2 012) 426-6883

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

اخي , لقد جربت ذلك من قبل , المشكلة ان الحقل اساسا char وعند كتابة ما ارسلت لى يخرج لي رسالة تقول : invalid number

بتاريخ:

السلام عليكم ورحمة الله وبركاته
اشترى من اخوك بقى
قدامك حل من الاتنين
1- انك تقطع
substr من اول الساعة لاخر الساعة
وبعدين
تحولها ل date وبعدين تطرح زى ما انت عاوز
الحل التانى
بصراحة معنديش انا كنت بضحك عليك
السلام عليكم ورحمة الله وبركاته

بتاريخ:

see you can use the next phrase and it working correctly 100%

to_char(to_date('12/12/2020 20:20','dd/mm/yyyy hh24:mi'),'hh24:mi')


Best regards,

Eng. Saeed H. Keshk

System Analyst - Riyadh Municipality

Mobile KSA : (+966 54) 023-3171

Mobile EGYPT : (+2 012) 426-6883

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

see you can use the next phrase and it working correctly 100%
to_char(to_date('12/12/2020 20:20','dd/mm/yyyy hh24:mi'),'hh24:mi')


Best regards,

Eng. Saeed H. Keshk

System Analyst - Riyadh Municipality

Mobile KSA : (+966 54) 023-3171

Mobile EGYPT : (+2 012) 426-6883





اوك ولكن لا يريد طرح الساعات من بعضهما
بتاريخ:

please send me the command you write

بتاريخ:

use this command

select to_char(to_date('12/12/2020 20:20','dd/mm/yyyy hh24:mi') - ((substr('10:10',0,2)/24) + substr('10:10',instr('10:10',':')+1,2)/(24*60)),'dd/mm/yyyy hh24:mi') 
from dual



Best regards,

Eng. Saeed H. Keshk

System Analyst - Riyadh Municipality

Mobile KSA : (+966 54) 023-3171

Mobile EGYPT : (+2 012) 426-6883

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

thank you , it is working well

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

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

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

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

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

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.