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

بتاريخ:

DECLARE 
f varchar(400);
cursor s is 
select code,attend--,to_char(sysdate,'yyyy') a,to_char(sysdate,'m') b,to_char(sysdate,'dd') 
from employee;
c number(7);
a date;
File UTL_FILE.FILE_TYPE; 
begin
File:= UTL_FILE.FOPEN('MY_DIR','a.txt','W');
:global.my_var:='A';
if :employee.move='A' then
:global.my_var:='A';
end if;
if :employee.move='B' then
:global.my_var:='B';
end if;
if :employee.move='C' then
:global.my_var:='C';
end if;
if :employee.move='D' then
:global.my_var:='D';
end if;
open s;
loop
fetch s into c,a;
exit when s%notfound;
f:=:employee.code||','||:GLOBAL.my_var||','||to_char(sysdate,'dd/mm/YYYY')||' '||to_char(a,'hh:mi:ss pm');
UTL_FILE.PUT_LINE(File,f); 
end loop;
UTL_FILE.FCLOSE(File); 

END;


:employee .code اديتها format mask فى الفورم
انها تتكون من 12 خانة
يعنى لو الرقم 1
يظهر 000000000001
لكن فى file
بييظهر رقم واحد فقط اعمل اية علشان انقلة بنفس الفورمات

بتاريخ:

أخي الكريم
أعتقد إن المشكلة ليست في الكود المشكلة في نوع ال datatype ل employee .code هل نوعه number
فلو كده لاينفع اجعله varchar2

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

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

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

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

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

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.