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

بتاريخ:

السلام عليكم


قمت بكتابة كود لتحويل جملة select الى صيغة xml
ولكن يظهر لى خطأ ora-00913 too many values
وهاهو الكود...



select xmlelement(
"xml",
xmlagg(xmlelement(
"region",
xmlattributes(p.area_id as "region"),
xmlagg(xmlelement(
"area_type",
xmlattributes(p.area_type as "area_type"),
(select xmlagg(xmlelement(
"product",
xmlattributes(c.name as "name",
pr.description_arabic as "description"))),
xmlagg(xmlelement(
"customer_licenses",
xmlattributes(cl.position_id as "pos_id",
cl.area as "area",
cl.description as "position",
cl.start_date as "start_date",
cl.end_date as "end_date",
cl.notes as "notes")))




FROM customer_licenses cl
LEFT JOIN positions p
ON (cl.position_id=p.id)
LEFT JOIN products pr
ON (cl.product_type=pr.id)
LEFT JOIN customers c
ON(c.id=cl.cust_id)
WHERE cl. license_type_id=4
and p.area_id IS NOT NULL
AND p.area_type IS NOT NULL
and p.id=cl.position_id
group by cl.position_id
)

)
)
)
)
)
xml
FROM positions p
WHERE p.area_id IS NOT NULL AND p.area_type IS NOT NULL
group by p.area_id

;

ارجو المساعدة فى تصحيح الخطأ

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

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

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

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

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

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.