Oracle
 sql >> Baza danych >  >> RDS >> Oracle

ORA-00933:Polecenie SQL nie zostało poprawnie zakończone podczas wstawiania wielu wierszy

Jeśli spojrzysz na diagram składni w dokumentacji , zobaczysz, że po nawiasie zamykającym dla wartości nie ma strzałki odwrotnej .

Dwa rozwiązania. Dwie wstaw s:

Wstaw do kampanii (kampania_dema, shop_id, kampania_type, sort_order, status, prawidłowe_from, prrawie_till, utworzone_at_atfed_at, custom_grid_layout_css, image_url, key, show_products_filter, mobil_app_image_url, layout_id_id_own_brand. CAROUSEL_BUTTON_TEXT_COLOR, CAROUSEL_BUTTON_BG_COLOR, CAROUSEL_BUTTON1_LABEL, CAROUSEL_BUTTON1_URL, CAROUSEL_BUTTON2_LABEL, CAROUSEL_BUTTON2_URL, CAROUSEL_HTML_OVERLAY, MOBILE_APP_TEASER_URL, CAROUSEL_CLAIM_URL, CAROUSEL_HERO_URL, CAROUSEL_BOX_COLOR, AVOID_CAMPAIGN_NAV_TEASER, CAROUSEL_BUTTON1_NEW_TAB, CAROUSEL_BUTTON2_NEW_TAB, SALE_QUALIFICATION_ID, SALE_TARGET_CAMPAIGN) VALUES (CAMPAIGN_SEQ.nextval, 1, 'C', 0, 'A', to_date('23.11.2016', 'RRRR-MM-DD'), to_date('2116-11-23', 'RRRR-MM-DD'), to_date('23.11.2016', 'RRRR -MM-DD'), to_date('2018-07-02', 'RRRR-MM-DD'), null, null, null, 1, null, '5_COL', 0, null, 4, to_date('2116 -11-23', 'RRRR-MM-DD'), 0, null, null, 'Artykuł ab Mo., 02.12.', 'https://www.lidl.de', null, null, null, null, null, null, null, 0, 0, 0, null, 0);WSTAW DO KAMPANII (ID_KAMPANII , SHOP_ID, CAMPAIGN_TYPE, SORT_ORDER, STATUS, VALID_FROM, VALID_TILL, CREATED_AT, MODIFIED_AT, CUSTOM_GRID_LAYOUT_CSS, IMAGE_URL, KEY, SHOW_PRODUCTS_FILTER, MOBILE_APP_IMAGE_URL, LAYOUT_ID, SHOW_OWN_BRAND, VALIDATION_STATUS, CAMPAIGN_USAGE_ID, STORE_END_DATE, PAGING_ALLOWED, CAROUSEL_BUTTON_TEXT_COLOR, CAROUSEL_BUTTON_BG_COLOR, CAROUSEL_BUTTON1_LABEL, CAROUSEL_BUTTON1_URL, CAROUSEL_BUTTON2_LABEL, CAROUSEL_BUTTON2_URL , CAROUSEL_HTML_OVERLAY, MOBILE_APP_TEASER_URL, CAROUSEL_CLAIM_URL, CAROUSEL_HERO_URL, CAROUSEL_BOX_COLOR, AVOID_CAMPAIGN_NAV_TEASER, CAROUSEL_BUTTON1_NEW_TAB, CAROUSEL_BUTTON2_NEW_TAB, SALE_QUALIFICATION_ID, SALE_TARGET_CAMPAIGN) VALUES (CAMPAIGN_SEQ.nextval, 1, 'P', 0, 'A', to_date('2016-11-09', ' RRRR-MM-DD'), to_date('2116-11-09', 'RRRR-MM-DD'), to_date('2016-11-09', 'RRRR-MM-DD'), to_date('2018 -07-02', 'RRRR-MM-DD'), null, null, null, 0, null, '4_COL_LEFT_NAV', 1, null, null, null, 1, null, null, null, null, null, null, null, null, null, null, null, 0, 0, 0, null, 0);

Lub użyj SELECT /ZŁĄCZ WSZYSTKIE :

Wstaw do kampanii (kampania_dema, shop_id, kampania_type, sort_order, status, prawidłowe_from, prrawie_till, utworzone_at_atfed_at, custom_grid_layout_css, image_url, key, show_products_filter, mobil_app_image_url, layout_id_id_own_brand. CAROUSEL_BUTTON_TEXT_COLOR, CAROUSEL_BUTTON_BG_COLOR, CAROUSEL_BUTTON1_LABEL, CAROUSEL_BUTTON1_URL, CAROUSEL_BUTTON2_LABEL, CAROUSEL_BUTTON2_URL, CAROUSEL_HTML_OVERLAY, MOBILE_APP_TEASER_URL, CAROUSEL_CLAIM_URL, CAROUSEL_HERO_URL, CAROUSEL_BOX_COLOR, AVOID_CAMPAIGN_NAV_TEASER, CAROUSEL_BUTTON1_NEW_TAB, CAROUSEL_BUTTON2_NEW_TAB, SALE_QUALIFICATION_ID, SALE_TARGET_CAMPAIGN) SELECT CAMPAIGN_SEQ.nextval, 1, 'C', 0, 'A', to_date ('23.11.2016', 'RRRR-MM-DD'), to_date('2116-11-23', 'RRRR-MM-DD'), to_date('23.11.2016', 'RRRR- MM-DD'), to_date('2018-07-02', 'RRRR-MM-DD'), null, null, null, 1, null, '5_COL', 0, null, 4, to_date('2116- 11-23', 'RRRR-MM-DD'), 0, null, null, 'Artikel ab Mo., 02.12.', 'https://www.lidl.de', null, null, null, null, null, null, null, 0, 0, 0, null, 0 FROM dual UNION ALL SELECT CAMPAIGN_SEQ. nextval, 1, 'P', 0, 'A', to_date('2016-11-09', 'RRRR-MM-DD'), to_date('2116-11-09', 'RRRR-MM-DD' ), to_date('2016-11-09', 'RRRR-MM-DD'), to_date('2018-07-02', 'RRRR-MM-DD'), null, null, null, 0, null, '4_COL_LEFT_NAV', 1, null, null, null, 1, null, null, null, null, null, null, null, null, null, null, null, 0, 0, 0, null, 0 FROM dual;


  1. Database
  2.   
  3. Mysql
  4.   
  5. Oracle
  6.   
  7. Sqlserver
  8.   
  9. PostgreSQL
  10.   
  11. Access
  12.   
  13. SQLite
  14.   
  15. MariaDB
  1. odczytywanie wielu wartości z pola PL/SQL BLOB

  2. Oracle sql nie jest grupą według wyrażenia podczas zliczania

  3. Java łącząca się z wieloma bazami danych

  4. Wstawianie daty z java do Oracle DB

  5. Moje zapytanie działa szybciej za drugim razem, jak to zatrzymać?