EA2 - BUG: Export produces invalid SQL for BINARY_DOUBLE columns
Description:
When a table contains a BINARY_DOUBLE column, INSERTs for that column in SQL exported with Export Wizard are invalid.
Steps to reproduce:
- open SQL Developer, connect to DB
- make a table containing a BINARY_DOUBLE column, e.g.:
CREATE TABLE "TESTTABLE" ("BINDBLCOL" BINARY_DOUBLE) ;
- add some data (floating-point numbers) to the table
- choose Tools -> Export Wizard (or Export DDL and Data in SQL Developer v1.2)
- check exporting of tables and data, on "Specify Objects/Data" choose your table
- press "Apply"
Error:
Generated SQL contains invalid INSERTs: floating-point numbers are enclosed in apostrophes (see below, relevant part is underlined).
-- DDL for Table TESTTABLE
CREATE TABLE "TESTTABLE"
( "BINDBLCOL" BINARY_DOUBLE
-- DATA FOR TABLE TESTTABLE
-- FILTER = none used
-- INSERTING into TESTTABLE
Insert into TESTTABLE (BINDBLCOL) values ('1.2345');
-- END DATA FOR TABLE TESTTABLE
The script, when run, produces following error on INSERT line:
SQL Error: ORA-01722: invalid number
When apostrophes are removed manually, script runs without problems.
Remarks:
SQL Developer: 1.5.0.52 MAIN-52.03; the same bug also on 1.2.1, build MAIN-32.13
Oracle DB: 10 Express
OS: Windows 2000 Professional
Java: 1.5.0.52: 1.5.0_15; 1.2.1: 1.6.0_03
Description:
When a table contains a BINARY_DOUBLE column, INSERTs for that column in SQL exported with Export Wizard are invalid.
Steps to reproduce:
- open SQL Developer, connect to DB
- make a table containing a BINARY_DOUBLE column, e.g.:
CREATE TABLE "TESTTABLE" ("BINDBLCOL" BINARY_DOUBLE) ;
- add some data (floating-point numbers) to the table
- choose Tools -> Export Wizard (or Export DDL and Data in SQL Developer v1.2)
- check exporting of tables and data, on "Specify Objects/Data" choose your table
- press "Apply"
Error:
Generated SQL contains invalid INSERTs: floating-point numbers are enclosed in apostrophes (see below, relevant part is underlined).
-- DDL for Table TESTTABLE
CREATE TABLE "TESTTABLE"
( "BINDBLCOL" BINARY_DOUBLE
-- DATA FOR TABLE TESTTABLE
-- FILTER = none used
-- INSERTING into TESTTABLE
Insert into TESTTABLE (BINDBLCOL) values ('1.2345');
-- END DATA FOR TABLE TESTTABLE
The script, when run, produces following error on INSERT line:
SQL Error: ORA-01722: invalid number
When apostrophes are removed manually, script runs without problems.
Remarks:
SQL Developer: 1.5.0.52 MAIN-52.03; the same bug also on 1.2.1, build MAIN-32.13
Oracle DB: 10 Express
OS: Windows 2000 Professional
Java: 1.5.0.52: 1.5.0_15; 1.2.1: 1.6.0_03
Similar Messages
-
Hi, is there a way to set sql query for a column?
the query should take value from column in the table.
in my case, it has come down for a need to have a nested select query inside my query:
select app.application_id,
(SELECT LISTAGG(typ.verification_name, ', ') WITHIN GROUP (ORDER BY typ.verification_id) FROM
typ,chk where
chk.application_id = app.application_id
GROUP BY app.application_id ) AS verification_type,
from tablea,tableb where....
<note that application_id is coming from the bigger query , aka another column from another table.>
i've tried
CAST ( EVALUATE_AGGR('LISTAGG(%1,%2) WITHIN GROUP (ORDER BY %3 DESC)', "typ"."verification_name", ', ', "chk "."application_id ") AS CHARACTER ( 50 ))
but my query need more than few EVALUATE_AGGR resulting in huge query in the log plus it's hard to put more details from other tables when you do this since everything buble down to the group by in the end of the query.
pls help if there's something even close to thisHi jan ,
thanx for your interest but let me clear with my requirement. What I want to do is that after executing the view query I want to navigate through records and sets some property or a group of property ( think it as a java object which holds properties ) for that cell and after that when I Navigate through record I don't want to run my logic for calculating properties again and I should be able to get those properties which I set earlier. There can be any number of records and most of time value will remain same then why should I calculate properties every time I navigate.
Currently I am storing these values in a separate class (with row and column no.)but now I am searching some way so that I can store those values in my view only.
Is it possible in BC4J view ? I heard that something like this is provided in BC4J view but not able to find out..
thanx once again
I welcome some other suggestions on it.. -
Using values returned from SQL for Report column names
I am building reports against our TFS development db.
One of the reports tracks days spent (Dwell Time) in various status categories (eg: New, Assigned, In Development, Hold, etc) for a given "ticket".
For a fixed list of values from {Work Item].System_State, I can send the results (days in Assigned) to the column named (Assigned) for each status for each event in the [Work Item History], and then sum them for each ticket as:
Ticket ID New Assigned InDev etc
1230001 2 0 0 ...
1230001 0 1 2 ....
SUM 2 1 2 ....
However, I have many different Projects, each of which use their own Status names.
I don't want to duplicate the same basic report, if I can avoid it.
How can I name and generate this data for the unique Status list for each Project?
Simplest analog is: name = First(Fields!Status.Value, "TFSdb")
and allows value for a column name (category) as: =IIF(Fields!Status.Value = First(Fields!Status.Value, "TFSdb"), Fields!Days.Value, 0)
However this fails beause:
1. It only delivers the FIRST status value, and,
2. I cannot SUM an expression which is itself an aggregate (using First).RRapport,
Is this still an issue?
Thanks!
Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
Small Basic,
Wiki Ninjas,
Wiki)
Answer an interesting question?
Create a wiki article about it! -
V2.1 - Exporting DATE columns produces invalid SQL
If you export a table with a column of type DATE, the SQL produced is invalid:
Left-click on table in tree view -> Click on "Data" tab -> Right click on data -> Export Data -> Insert -> Clipboard:
to_timestamp('01-SEP-09 17:49:21','DD-MON-RR HH.MI.SSXFF AM')
I have seen this work correctly, but I can't find the right combination now... but in this case the date format should be:
to_timestamp('01-SEP-09 17:49:21','DD-MON-RR HH24.MI.SSXFF')
Edited by: gclough on Jan 4, 2010 3:54 PMHi,
I encountered this problem since the EA and Vasan (one of the SQL Dev's team) gave the solution for this.
>
You can add the following in the sqldeveloper.conf to ensure that the driver doesn't report the column type of a DATE column as TIMESTAMP.
AddVMOption -Doracle.jdbc.mapDateToTimestamp=false
>
As you can see on
Re: 2.1 EA1: Problems on Date type columns
I wonder, why this isn't included on the default installation of the product, since it is absolutely wrong to use Timestamp for Date type column on the first place.
Regards,
Buntoro -
V2.1 - Exporting CLOBS produces invalid SQL
When you export a table that has a CLOB via either of these methods, the SQL it produces is invalid (Quotes, Blank Lines, etc.) :
1. "Tools -> Database Export"
2. Right-click on the results page, then export as "Insert" to the clipboard
Insert into JAVASCRIPT (ID,FUNCTION_NAME,NAME,DESCRIPTION,VALID,FUNCTION,NUMBER_OF_ARGUMENTS,JAVASCRIPT,LAST_MODIFIED_DATE) values (26,'buildParameterizedUrl','Build Parameterized URL','Build Parameterized URL',1,1,3,'function buildParameterizedUrl(url, paramArray, valueArray)
url += '?';
var first = true;
for(var i in paramArray)
if(first)
first = false;
else
url += '&';
*url += paramArray[i] + '=' + valueArray;*
return url;
*',to_timestamp('16-JUL-09 09.52.30.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));*Hi,
I encountered this problem since the EA and Vasan (one of the SQL Dev's team) gave the solution for this.
>
You can add the following in the sqldeveloper.conf to ensure that the driver doesn't report the column type of a DATE column as TIMESTAMP.
AddVMOption -Doracle.jdbc.mapDateToTimestamp=false
>
As you can see on
Re: 2.1 EA1: Problems on Date type columns
I wonder, why this isn't included on the default installation of the product, since it is absolutely wrong to use Timestamp for Date type column on the first place.
Regards,
Buntoro -
Container generating invalid SQL for mysql
Apparently sunone's container is putting double quotes around the table names and field names in the SQL in generates for CMP entities beans. MySQL is not happy about this. Is there someway to deal with this? Has anyone else who is using MySQL run across this yet ?
You can configure S1AS 7.0 to support Transparent Persistence with MySQL by doing the following:
1. Create a file named .tpersistence.properties, residing in the current working directory of the S1AS instance. This will allow you to override the default Persistence Manager settings for the MySQL database.
For example, create the file $AS_INSTALL/domains/domain1/server1/config/.tpersistence.properties containing the following:
database.mysql.QUOTE_CHAR_END=\
database.mysql.QUOTE_CHAR_START=\
database.mysql.RTRIM=
database.mysql.RTRIM_POST=
2. Restart the Sun ONE AS 7.0 instance.
Regards,
Chris Drake -
Eclipselink producing incorrect sql - ORA-00918: column ambiguously defined
We have a table with many columns .A1 .A2 .A3.... .A125 .N1 .N2 .N3... .N95 and with a simple jpql join it comes up with 2 columns that are ...AS N1150 and causing an ambiguous column error ...
Does any one know of a valid workround or if this is a known bug. No problems were present in toplink, just eclipselink....
it appears to be doing a count and suffixing the count to the column name to make sure the columns have unique id's - but failing:
K1 -> K1 _1_
N41 -> N41 _2_
N11 -> N11 _50_
... then 100 columns later
N1 -> N1 _150_
the jpql is :
@NamedQuery(name=NamedQueryNames.XREF_IMPORT_SELECT,
query="SELECT t FROM Tran t, Xref x "+
" WHERE t.key = x.a1 "+
" AND x.key.k1 = :partial "+
" AND x.key.k2 LIKE :partialX " +
" ORDER BY x.key.k2")
Tran has fields k1,k2, a1, a2...a125, n1, n2...n95
xref has k1,k2,a1,a2..a5, n1,n2,n3
the sql eclipse link produces for the query is :
SELECT *
FROM
(SELECT
/*+ FIRSTROWS */
a.*,
ROWNUM rnum
FROM
(SELECT t1.K1 AS K11,
t1.N41 AS N412,
t1.N40 AS N403,
t1.N45 AS N454,
t1.N44 AS N445,
t1.A120 AS A1206,
t1.N43 AS N437,
t1.A121 AS A1218,
t1.N42 AS N429,
etc
t1.N25 AS N2547,
t1.N10 AS N1048,
t1.N12 AS N1249,
t1.N11 AS N1150,
t1.N17 AS N1751,
a load more columns
t1.A65 AS A65147,
t1.A68 AS A68148,
t1.A67 AS A67149,
t1.N1 AS N1150,
t1.A41 AS A41151,
t1.N5 AS N5152,
etc
FROM COREXFA t0,
CORETRA t1
WHERE (((t1.K1 = t0.A1)
AND (t0.K1 = ?))
AND (t0.K2 LIKE ?))
ORDER BY t0.K2 ASC
) a
WHERE ROWNUM <= ?
WHERE rnum > ?This issue is cause by the aliasing done because you are using firstResult/maxResult. I think there is already a bug logged for this issue, please vote for the bug.
See,
http://old.nabble.com/Duplicate-aliases-generated-for-columns-%281.1.3%29-td28039552.html
Some workarounds would be,
- avoid using firstResult/maxResult
- rename the columns
- use native SQL
- use a cursor query instead of firstResult/maxResult
James : http://www.eclipselink.org -
[BUG] Exporting to xls and xlsx produces empty file
When I'm viewing a table with data, and in Actions choose "Export...", turn off "Export DDL", choose "xls" for format, everything else is on default, and either leave empty or enter same name for both Query and Data worksheet names, and specify filter query - export produces empty xls/xlsx file. Only when one explicitly enters different worksheet names does valid non-empty excel workbook get generated with two differently named worksheets.
Either validation should be added for worksheet names, or generating them automatically on export should be supported.
I'm using Oracle SQL Developer 3.1.07.
Kind regards,
Stevo.Hi Stevo,
Really appreciate you reporting this. There was an earlier, somewhat similar thread on this issue that we blamed on export file size:
Sql Developer 3.1 - Exporting a result set in xls generates and empty file
But you have discovered an important variation that explains it for small export file sizes also. Here is what I verified on 3.1.07.42:
1. Normally if the worksheet names are left untouched (empty), then the names default to Export Worksheet and SQL
2. If the name settings in Tools|Preferences|Database|Utilities|Export|Excel Format are null (empty), there is no problem
3. If the name settings are intentionally changed to a single blank character, then the problem you describe occurs.
So, you may wish to go to the preference settings and intentionally Backspace over each to null it out, then click OK.
In the case of intentionally setting both worksheet names, data and query, to the same non-null value, that is also a problem.
Regards,
Gary
SQL Developer Team
Edited by: Gary Graham on Apr 17, 2012 11:55 AM
Logged a bug for this:
Bug 13971991 - FORUM: EXCEL FILE EMPTY IF DATA AND QUERY WORKSHEETS ARE THE SAME AND NON-NULL
Edited by: Gary Graham on May 25, 2012 2:00 PM
Notification received: fixed for 3.2 -
Dear ALL,
i am trying to export the combained PDF based on BOOK opetion using below scripts. but i am getting following error message "Invalid value for parameter 'to' of method 'exportFile'. Expected File, but received 1952403524". anyone knows, please suggest me solutions.
var myBookFileName ,myBookFileName_temp;
if ( myFolder != null )
var myFiles = [];
var myAllFilesList = myFolder.getFiles("*.indd");
for (var f = 0; f < myAllFilesList.length; f++)
var myFile = myAllFilesList[f];
myFiles.push(myFile);
if ( myFiles.length > 0 )
myBookFileName = myFolder + "/"+ myFolder.name + ".indb";
myBookFileName_temp=myFolder.name ;
myBookFile = new File( myBookFileName );
myBook = app.books.add( myBookFile );
myBook.automaticPagination = false;
for ( i=0; i < myFiles.length; i++ )
myBook.bookContents.add( myFiles[i] );
var pdfFile =File(File(myFolder).fsName + "\\"+myBookFileName_temp+"_WEB.pdf");
var bookComps = myBook.bookContents;
if (bookComps.length === 1)
bookComps = [bookComps];
var myPDFExportPreset = app.pdfExportPresets.item("AER6");
app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFEx portPreset,bookComps);
//myBook.exportFile (ExportFormat.pdfType, pdfFile, false);
//myBook.exportFile(pdfFile, false, pdfPref, bookComps);
myBook.close(SaveOptions.yes);Change the below line:
app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset,bookComps);
to
app.activeBook.exportFile(ExportFormat.PDF_TYPE,File("D:\\AER\\WEBPDF.pdf"),false,myPDFExp ortPreset);
Vandy -
Attunity connectors for Oracle in Import Export Wizard in SQL Server 2008 R2
Is there a way we can see the Attunity connectors drivers in the Import/Export Wizard (64 bit) for SQL Server 2008 R2?
Although I made it work for SSIS, I would need these drivers in the Import/Export wizard so as to automate it for numerous number of tables which I want to migrate.
Can the Attunity connectors for Oracle be used in the Import/Export wizard? If so please let me know.
Regards,
Ashutosh.
Ashutosh.I have 100 tables to migrate. Creating a data flow for each table is tedious and that's why I was looking out for a way to do it through import export wizard so that I don't have to create a separate data source and destination for each table in the Data
flow Task.
Is there a way to loop through all tables and transfer data in SSIS without having multiple sources and destinations created for each table? This also involves a bit of transformation as well.
Regards,
Ashutosh. -
Java.sql.SQLException: Invalid SQL type for column
Hi guys!
We are migrating from TOMCAT to WebLogic and we are getting the following error:
java.sql.SQLException: Invalid SQL type for column
at javax.sql.rowset.RowSetMetaDataImpl.checkColType(RowSetMetaDataImpl.java:94)
at javax.sql.rowset.RowSetMetaDataImpl.setColumnType(RowSetMetaDataImpl.java:439)
at .initMetaData(CachedRowSetImpl.java:743)
at com.sun.rowset.CachedRowSetImpl.populate(CachedRowSetImpl.java:621)
In TOMCAT environment rowset.jar is in common/endorsed directory. Need I to put rowset.jar at any specific location?
Thanks.
Best regardsHi!
We are using WebLogic 11g (10.3.2). We know about datasource configuration, but for now we are justing migrating from Tomcat to WebLogic without change the application source code.
Is there any option to solve this problem?
Thanks a lot!
Best Regards -
Trying to produce report but have ERROR ORA-00900: invalid SQL statement
Hi,
I am new to Oracle so have been experimenting with a few things to get the hang of it. I have been trying to produce a report, but keep getting the error: ORA-00900: invalid SQL statement.
This happens at my first line of code where I have COLUMN <column_name> HEADING <Heading_name>
So I am a bit confused - is there a command that I am supposed to issue that indicates to SQL*Plus that I am trying to create a report?
Also, if I just delete the COLUMN <column_name> HEADING <Heading_name> rows and just start at BREAK ON <column_name> SKIP 1, it produces the same error.
I am using Oracle 8.0.6 - does this make a difference?
Here is my code:
COLUMN a.p_ctryid HEADING 'Country'
COLUMN s.p_animid HEADING 'Stallion ID'
COLUMN s.p_uname HEADING 'Stallion Name'
COLUMN a.p_animid HEADING 'Horse ID'
COLUMN d.p_careertp HEADING 'Career'
BREAK ON s.p_animid SKIP 1
BREAK ON d.p_careertp SKIP 2
COMPUTE SUM LABEL 'Total' OF d.p_careertp ON REPORT
SELECT DISTINCT a.p_ctryid, s.p_animid, s.p_uname, a.p_animid, d.p_careertp
FROM p_owby.p_animal a, p_owby.p_animal s, p_owby.p_mating m, p_owby.p_anim_dtl d
WHERE m.p_mateyr = 2001
AND a.p_animid = d.p_animid
AND a.p_animid = m.p_animid
AND a.p_animid > 0
AND s.p_animid = a.p_sire
AND a.p_ctryid IN('GB','IRE')
GROUP BY a.p_ctryid, s.p_animid, s.p_uname, d.p_careertp, a.p_animid
ORDER BY a.p_ctryid, s.p_animid, d.p_careertp
Any help would be greatly appreciated!
Thanks in advance!You are trying to do COMPUTE SUM ... ON REPORT but there is no BREAK ON REPORT specified. The computed sum will not be shown unless you also break on report. see below demonstration. first select has no sum even though we have specified COMPUTE. The second select shows the sum since now we have done break on report.
SQL> compute sum of sal on report
SQL> select * from scott.emp order by empno ;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-1980 800 20
7499 ALLEN SALESMAN 7698 20-FEB-1981 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-1981 1250 500 30
7566 JONES MANAGER 7839 02-APR-1981 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-1981 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-1981 2850 30
7782 CLARK MANAGER 7839 09-JUN-1981 2450 10
7788 SCOTT ANALYST 7566 19-APR-1987 3000 20
7839 KING PRESIDENT 17-NOV-1981 5000 10
7844 TURNER SALESMAN 7698 08-SEP-1981 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-1987 1100 20
7900 JAMES CLERK 7698 03-DEC-1981 950 30
7902 FORD ANALYST 7566 03-DEC-1981 3000 20
7934 MILLER CLERK 7782 23-JAN-1982 1300 10
14 rows selected.
SQL> break on report
SQL> select * from scott.emp order by empno ;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-1980 800 20
7499 ALLEN SALESMAN 7698 20-FEB-1981 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-1981 1250 500 30
7566 JONES MANAGER 7839 02-APR-1981 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-1981 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-1981 2850 30
7782 CLARK MANAGER 7839 09-JUN-1981 2450 10
7788 SCOTT ANALYST 7566 19-APR-1987 3000 20
7839 KING PRESIDENT 17-NOV-1981 5000 10
7844 TURNER SALESMAN 7698 08-SEP-1981 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-1987 1100 20
7900 JAMES CLERK 7698 03-DEC-1981 950 30
7902 FORD ANALYST 7566 03-DEC-1981 3000 20
7934 MILLER CLERK 7782 23-JAN-1982 1300 10
sum 29025
14 rows selected.
SQL> -
EA2 - invalid option for ALTER SESSION when logging in to 9i DB via EA2
When logging in to a 9i DB(9.2.0.7.0) i recieve the following error in the Logging Window:
SEVERE 48 16 ORA-02248: invalid option for ALTER SESSION
Edited by: Trotty on Nov 10, 2009 10:37 AM
Does anyone else get this logging message when accessing a 9i DB
Edited by: Trotty on Nov 10, 2009 10:37 AMTrotty wrote:
When logging in to a 9i DB(9.2.0.7.0) i recieve the following error in the Logging Window:
SEVERE 48 16 ORA-02248: invalid option for ALTER SESSION
Edited by: Trotty on Nov 10, 2009 10:37 AM
Does anyone else get this logging message when accessing a 9i DBI use 10g but have never seen that message even on 9i.
See if you have any on-login triggers that could be issuing an incorrect alter session command. Also see if the error occurs as other users (if possible)
If this was SQL*PLUS I'd also check the login.sql and glogin.sql files but I don't think sql*developer uses those.
Edited by: riedelme on Nov 10, 2009 6:18 AM -
Export collection as jpeg produces wrong format for Clikpic website
Lightroom 1.3.1, high spec pc, Windows XP, ACD,etc. I have a website with "Clikpic". Before starting with L/R I had a Photoshop action to save for web at 600x600@72dpi etc, images from which then upload fine into Clikpik. I thought I would use the L/R "Collection" option to select some images from a recent trip, then use the "Export" option to save in the required Clikpic format - if I use that and then try to upload, I get error message "CF_IMAGE INFO:Format Not Recognised". I then went back to my own old Photoshop Action to do the same thing with the same image and that one uploads fine. Both images come out around 60Kb. What is wrong with the Lightroom process? Has anyone else had this problem? I have posted the query to Clikpik support too.
One difference between LR export and PS save-for-web is that LR will imbed the image's metadata in the JPG and SFW only maintains copyright info (in PS3) or nothing (prior versions). So could Clikpic be seeing some metadata in the LR export that it doesn't like?
-
Invalid SQL Statement when using execute for running Procedures
Hi ,
I create a simple stored procedure , it was created successfully , when i tried to run the StoredProcedure , it is giving me
exec myStoredProcedure() ;
please tell me why this is coming .hi
i am using oracle 10g with asp.net
i have created a procedure and it executed successfully, when i executed with exce <storedproc>
but when i call up this procedure with .net it is giving an error like this..
ERROR [42000] [Oracle][ODBC][Ora]ORA-00900: invalid SQL statement
any one pls suggest me how to resolve this issue
here is my stored procedure
create or replace
procedure sp_AddTrial (parStudyName VARCHAR2, parContactName VARCHAR2, parContactNumber varchar2, parDescription varchar2, parFactorName in varchar2, parTreatmentName in varchar2) is
Pos int;
Pos1 int;
parName varchar2(50);
parTName varchar(30);
parFactorNames varchar2(500);
parTreatments varchar2(500);
parWeight int;
parValue varchar2(20);
parValue1 varchar2(20);
parValue2 varchar2(20);
parValue3 varchar2(20);
begin
parFactorNames :=parFactorName;
parTreatments :=partreatmentname;
insert into mivrs_studyinfo(
study_id,
study_name,
contact_name,
phone_number,
description,
created_date,
modified_date
values
mivrs_studyinfo_seq.NEXTVAL,
parStudyName,
parContactName,
parContactNumber,
parDescription,
sysdate,
sysdate
if parTreatments is not null then
parTreatments := Concat(TRIM(parTreatments),',');
Pos1 := INSTR(parTreatments,',');
insert into temp values(1,'test');
IF length(parTreatments)!= 0 then
WHILE Pos1 > 0
loop
insert into temp values(2,Pos1);
parTName := TRIM(SUBSTR(parTreatments,0, Pos1 - 1));
parTreatments := SUBSTR(parTreatments,Pos1 + 1);
Pos1 := INSTR(parTreatments,',', 1);
parWeight := TRIM(SUBSTR(parTreatments,0, Pos1 - 1));
IF length(parTName) != 0 then
insert into mivrs_treatments (treatment_id, treatment_name, weight, study_id, created_date, modified_date) values (mivrs_treatments_seq.NEXTVAL, parTName, parWeight, mivrs_studyinfo_seq.CURRVAL,sysdate, sysdate);
end if;
parTreatments := SUBSTR(parTreatments, Pos1+1);
Pos1 := INSTR(parTreatments,',');
END loop;
END IF;
end if;
if parFactorNames is not null then
parFactorNames := Concat(TRIM(parFactorNames),',');
Pos := INSTR(parFactorNames,',');
IF length(parFactorNames)!= 0 then
WHILE Pos > 0
loop
parName := TRIM(SUBSTR(parFactorNames,0, Pos - 1));
parFactorNames := SUBSTR(parFactorNames,Pos + 1);
Pos := INSTR(parFactorNames,',', 1);
parValue := TRIM(SUBSTR(parFactorNames,0, Pos - 1));
parFactorNames := SUBSTR(parFactorNames,Pos + 1);
Pos := INSTR(parFactorNames,',', 1);
parValue1 := TRIM(SUBSTR(parFactorNames,0, Pos - 1));
parFactorNames := SUBSTR(parFactorNames,Pos + 1);
Pos := INSTR(parFactorNames,',', 1);
parValue2 := TRIM(SUBSTR(parFactorNames,0, Pos - 1));
parFactorNames := SUBSTR(parFactorNames,Pos + 1);
Pos := INSTR(parFactorNames,',', 1);
parValue3 := TRIM(SUBSTR(parFactorNames,0, Pos - 1));
IF length(parName) != 0 then
insert into mivrs_stratificationfactors (factor_id, factor_name, study_id, value1,value2,value3,value4) values (mivrs_stratfactors_seq.NEXTVAL, parName, mivrs_studyinfo_seq.CURRVAL,parValue,parValue1,parValue2,parValue3);
end if;
parFactorNames := SUBSTR(parFactorNames, Pos+1);
Pos := INSTR(parFactorNames,',');
END loop;
END IF;
end if;
end;
thank u
Sowjanya
Maybe you are looking for
-
"File not Found" error in the admin console for dimension
Hi All, We are onto the BPC7 MS version and recently we have started facing an error "File Not Found" while trying to access the dimension members from the admin console. I have checked the "adminapp" folder where all the dimension files should be pl
-
Reader XI, since 11.0.1. i cannot print any more under WIN8
Since reader XI 11.0.1 I'm not able to print any more. Only the window "Save as" appears. So I can save the document (once more) and that was it. Printing with WIN8 Reader works fine ... but I want to use Adobe Reader to print .. What's wrong? START
-
Dear All A query is generating the result and show acctcode _SYS00000000371 but i need level 5 account code that is A105020010-00-00-00-01 pls. resolved this issue SELECT t2.acctcode, t2.acctname, t3.DebPayAcct,T1.TransId, t1.Line_ID, T1.Debit,
-
I1111 for SC (Item in Transfer Process)
Hi, Business is using SRM 3.0 ECS. Scenario is that User is creating Shopping cart thru Catalogue and there is Approval process for SC. Once the SC gets approved PO is created by the system.(I1113).For this perticular SC error is Item in transfer pro
-
Is it possible to "lock" a folder?
Does anyone know if there is there a way to configure a standard folder so that a password is always required to open it, regardless of privileges of the current user? G5 Mac OS X (10.4.6)