473,320 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to fix error on procedure creation?

Expand|Select|Wrap|Line Numbers
  1. create or replace PROCEDURE affich(NMCLI IN NUMBER , STARTDATE IN DATE , ENDATE IN DATE,c out sys_refcursor)IS
  2. BEGIN 
  3. OPEN C FOR
  4. SELECT   FO.NUMFOUR,
  5.      FO.RAISONSOCIAL,
  6.      F.NUMFACTURE,
  7.          SUM(CAT.PRIX * PRF.QTE)
  8.  from     CATEGORIE CAT,
  9.      PRODUITSFACTURE PRF,
  10.      PRODUIT PR,
  11.      FOURNISSEUR FO,
  12.      FACTURE F
  13.  where   CAT.NUMCAT=PR.NUMCAT
  14.  and     F.NUMFOUR=FO.NUMFOUR
  15.  and     PR.NUMEROPRODUIT=PRF.NUMEROPROD
  16.  and     PRF.NUMFACTURE=F.NUMFACTURE
  17. END;
--------------------------------------------------------
Errors list :
Compilation failed,line 16 (17:38:03)
PL/SQL: ORA-00933: SQL command not properly ended
Compilation failed,line 4 (17:38:03)
PL/SQL: SQL Statement ignored
Compilation failed,line 17 (17:38:03)
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe
Jan 2 '11 #1
1 3948
debasisdas
8,127 Expert 4TB
you need to add a missing SEMI COLON in line 16.
Jan 3 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: SandySears | last post by:
I am trying to use a stored procedure to insert a record using VS 2005, VB and SQL Server Express. The code runs without errors or exceptions, and returns the new identifer in the output...
6
by: cmay | last post by:
I am writing some code generation stuff and I am trying to get a script like this to work: IF (something) BEGIN CREATE PROCEDURE Whatever AS SELECT 1 as one END
8
by: peteh | last post by:
Hi All; I have what I hope is a simple environmental problem. I have some SQL that creates a VERY simple procedure. When the create is executed from Quest (from a Windows client) - no problem. As...
1
by: ancy | last post by:
hi all I am calling a procedure within script.Even if the prcoedure is not executed successfully. In log file it is recorded as procedure successfully executed .How to capture errors in log file ...
2
by: masri999 | last post by:
I have a requirement in SQL 2005 in Development database 1. Schema dbo owns all objects (tables,views,SPs,UDFs etc) . 2. Only DBA's ( who are database owners ) can create, alter tables ....
11
by: raylopez99 | last post by:
Keep in mind this is my first compiled SQL program Stored Procedure (SP), copied from a book by Frasier Visual C++.NET in Visual Studio 2005 (Chap12). So far, so theory, except for one bug...
0
by: mktilu | last post by:
hi can any one tell me how to call a stored procedure from oracle where the stored procedure return one paramter as string
3
by: PRAW | last post by:
Hi I am working on a way to Create procedure to insert a set of records for a project in a database.Now there are 11 tasks and they are to be added in each project in a table Task_Name ...
2
by: rameshcse2005 | last post by:
hai this is Ramesh , What the difference is between CREATE PROC and CREATE PROCEDURE? i have a basic question, i googled this question, but i could't get exact answer. so i hope somebody...
2
by: mbewers1 | last post by:
Hello I have 2 errors on the following procedure and none of the posts on Bytes or websites I have researched (e.g.: This One seem to be able to help me resolve them. Error (1): SQL...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.