SQL Datamodeler: Transform super/sub-entities to tables
Hello,
Suppose I have the following situation:
Super entity A
with sub-entities B and C
Sub-entity B has a mandatory attibute.
When transforming this to a relational model I expect he following result:
1. One table A, no table B and C
2. a discriminator column (to distinguish between B and C)
3. All attributes of entity A transformed into table A with same optionality
4. All attributes of entities B and C transformed to optional columns in table A
Unfortunately this is not the case. I get one table, I do NOT get a discriminator column.
Furthermore the required attribute of sub-entity B is transformed to a mandatory column of table A.
Is there a way I can influence this (in my opinon wrong) behaviour?
Regards Erik
Hi Erik,
you cannot influence the process. Enhancement request and bug are logged for that.
Best regards,
Philip
Similar Messages
-
Transforming Entities to Tables - No changes are saved to the database
Hi,
I have inherited a Designer 9i application which has 4 containers. Changes were maid to one container and I'm trying to transform Entities into Tables.
The transformation runs fine and I get "Changes posted to database" messages.
The problem is when I go in the RON and try to see if changes were maid to the Tables: none ! Nada !
Everything that came with the application (dmp file from vendor) is there but nothing of the new stuff...
I tried Default mode and "Advanced" several times to no avail...
I'm using Designer 9.0.2.10 on a 9i database... Everything is compiled and functionning properly beside to changes that won't get saved into Tables...
Any ideas ?
Thanks !The fact that you are using the repository owner may be your problem. NEVER use the repository owner for day to day work. The only tool that should ever connect as the owner is the Repository Administration Utility (RAU). Instead, have the DBA create a user for your day to day work, use RAU to grant that user access to the repository, and in the Repository Object Navigator (RON) grant the user rights on various applications.
-
Business Rules on super-sub types
We are currently in the process of modeling business rules. We have some super-subtype entities in our datamodel. We also have business rules on the super-type as wella as the sub-types.
What name for these BR's should we use, more specific which entity short-name: the entity-short-name of the type (super or sub) the rule applies to OR the entity-short-name of the (technical) to be implemented table?
How will Headstart deal with these names when transforming the BR's to technical BR's and how will the CAPI-creation utility deal with this?
GeertThe business rules transformer should correctly handle the super/sub type rules. It assumes that your super/sub
type entities are mapped to a single table with a discriminator column. You can name the rules using the correct
super/sub entity name and the transformer will determine the table each is mapped to (all the same table). The
transformer will add a condition to the Trigger When clause for subtype rules so that they are only triggered on rows
where the subtype is of the correct type.
Regards,
Lauri -
Bufg in entities from tables wizard
Environment Win XP 5.1.2600 Spanish; Jdeveloper 10132 with this table
SQL> desc linea;
Name Null? Type
CODPROV NOT NULL VARCHAR2(3)
CODLINE NOT NULL VARCHAR2(3)
LINEA NOT NULL VARCHAR2(30)
CODSLINE NUMBER(5)
ESTADO CHAR(1)Codprov,Codline is PK
The entities from tables wizard generates:
package model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.NamedQuery;
@Entity
@NamedQuery(name = "Linea.findAll", query = "select o from Linea o")
public class Linea implements Serializable {
public Linea() {
package model;
import java.io.Serializable;
public class LineaPK implements Serializable {
public LineaPK() {
public boolean equals(Object other) {
if (other instanceof LineaPK) {
final LineaPK otherLineaPK = (LineaPK) other;
final boolean areEqual = true;
return areEqual;
return false;
public int hashCode() {
return super.hashCode();
}The same with Jdev 10133. any ideas?? the code for the wizard have not changed between 10132 and 10133?
Thanks
Alex Urzola R.It works for hr.departments; indeed the wizards generates some other entities in my project but generates this empty class with that table "Lineas" (which have a composite key) and when i ask to generate several entities aside with this one, it skip the generation of some other entity also.
Note I'm Using JDK 1.5.0_08-b03 which is NOT part of neither 10132 nor 10133 dist. -
Hi,
I am trying toceate an interface which collects data from database make some transformation and populated seeded tables in the same database.
My Approach is :
a) Create a record type variable ( concists of multiple segments)
b) Create a pl/sql table type of the records type in a)
c) Created a cursor of same structure as pl/sql table type ( collects data)
d) BULK CoLLECT data from cursor into pl/sql table
e) Print the data
But during Bulk Collect i get the below error :
Unexpected error in xxc_hr2hr_populate_elements.main at FLOW TRACE-1.120. Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value
ORA-20003: Unexpected error in xxc_hr2hr_populate_elements.get_data at FLOW TRACE-1.1.100. Error: ORA-06502: PL/SQL: numeric or value error: Bulk Bind: Truncated BindAshish_Apps wrote:
Hi,
I am trying toceate an interface which collects data from database make some transformation and populated seeded tables in the same database.
My Approach is :
a) Create a record type variable ( concists of multiple segments)
b) Create a pl/sql table type of the records type in a)
c) Created a cursor of same structure as pl/sql table type ( collects data)
d) BULK CoLLECT data from cursor into pl/sql table
e) Print the data
But during Bulk Collect i get the below error :
Unexpected error in xxc_hr2hr_populate_elements.main at FLOW TRACE-1.120. Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value
ORA-20003: Unexpected error in xxc_hr2hr_populate_elements.get_data at FLOW TRACE-1.1.100. Error: ORA-06502: PL/SQL: numeric or value error: Bulk Bind: Truncated BindVerify the rows you are fetching are having the same data types as your Record like Dates should go to date , decimal should not be fetched in type defined as number etc. -
SQL datamodeler: No repository?
Hello
I thought that the production version of SQL Datamodeler would contain a repository. In fact it was one of the question on the faq on the sql developer data modeler home page
(http://www.oracle.com/technology/products/database/datamodeler/html/datamodelerfaq.html#repository)
How are the models currently stored and will there be a repository?
SQL Developer Data Modeler stores each model in a standard directory with the model name as directory name with an additional main header file using the model_name.xml. You can store models locally or on a central file server. Many early adopter customers have successfully used open source version tools such as Subversion, to keep their models under source code control.
Currently the Repository is under development. Models will be stored in a standard relational Oracle database.
Are there still plans to use a repository ? I think osdm is a great product but I personally think you need a repository to make it a multi-user datamodeling tool.
Regards ErikYes, we plan to support both.
Erik,
You make my point exactly: Like many users you say you want a database repository for a multi-user environment, but now you say "In that case we could create productivity boosters and quality checks using pl/sql." What do you want here? This is different. The tool provides a full Design Rules section for quality checks and you can use the reporting repository for additional reports.
Today, the production release of the Data Modeler supports a reporting repository.
1. Take any design and select the export option to export it to the reporting repository.
2. The export dialog is a connection dialog.
3. If you have never exported the design before, the tables required will be created for you in the schema you provide. -We recommend you create a new schema for this purpose - Subsequent exports will be added to the same repository, unless directed.
You can now import the provided reports into SQL Developer and run these reports about your design. Because it's just a schema in the database, you can use SQL Developer to browse the tables and add your own reports.
There is a full tutorial on this on the [ Data Modeler|http://www.oracle.com/technology/products/database/datamodeler/index.html] site.
Sue -
SQL Datamodeling: importing sql
Hello,
I'm importing a ddl file to sql datamodeler. Columns, pks and uks are imported ok but the foreign keys are not imported allthough they are in the script.
The script was created from sql developer.
fragment:
CREATE TABLE "DARWIN"."DUS_ALLOCATIES"
( "ID" NUMBER NOT NULL ENABLE,
"PSN_ID" NUMBER,
"ODT_ID" NUMBER NOT NULL ENABLE,
"STARTDATUM" DATE NOT NULL ENABLE,
"EINDDATUM" DATE,
"UURTARIEF" NUMBER(6,2) NOT NULL ENABLE,
"AFSPRAKEN" VARCHAR2(4000 BYTE),
"OPMERKINGEN" VARCHAR2(100 BYTE),
"INZET_PERCENTAGE" NUMBER(5,2) DEFAULT 100,
CONSTRAINT "ALC_PK" PRIMARY KEY ("ID"))
CONSTRAINT "ALC_PSN_FK1" FOREIGN KEY ("PSN_ID")
REFERENCES "DARWIN"."DUS_PERSONEN" ("ID") ENABLE,
CONSTRAINT "ALC_ODT_FK1" FOREIGN KEY ("ODT_ID")
REFERENCES "DARWIN"."DUS_OPDRACHTEN" ("ID") ENABLE
Regards ErikArnoldH wrote:
Hi Philip,
Could you expand a bit on your reply? Do you mean the import will work in the current release if the quotes are stripped off? Do you mean that the next release will work with the quotes? (What about without the quotes too? As the normal output for DBMS_METADATA.GET_DDL is quoted ("owner"."object"), will the next release work with either? I hope so.)
Thanks,Hi Arnold,
on your questions - yes, yes (yes,yes).
In current published release - it should work without quotes. With quotes, obviously it doesn't work when definition of foreign keys are embedded in "create table" statement. It's fixed and should work in next published release. I use should because parsing of scripts always can be surprising.
Philip -
Hi everybody,
I have two Distinct Databases on two distinct servers. (Oracle Ent. Release 10.2.0.3.0 on AIX 5.3). After I install the latest patch last week, One of the APEX installation has some problems on Home>Application Builder Page. The error message is very random and
report error:
ORA-06502: PL/SQL: numeric or value error: NULL index table key value.
When i change the view (details to icons), everything goes to normal. This error message is reflected some of the pages (report region) of some of my applications randomly. When it appears in a report region, i deselect the order method of the region, the result is normal.
But the other APEX application on the other instance has no problem. It is a bug? or Should i re-install the APEX instance?
Thank you for your interest?
Gökhan ÇATALKAYANo, but we have a reproducible test case now so we're working on it. See ORA-06502: PL/SQL: numeric or value error: NULL index table key value
Scott -
PL/SQL- Problem in creating a partitioned fact table using select as syntax
Hi All,
I am trying to create a clone(mdccma.fact_pax_bkng_t) of existing fact table (mdccma.fact_pax_bkng) using dynamic pl/sql. However, pl/sql anonymous block errors out with following error:
SQL> Connected.
SQL> SQL> DECLARE
ERROR at line 1:
ORA-00911: invalid character
ORA-06512: at "SYS.DBMS_SYS_SQL", line 1608
ORA-06512: at "SYS.DBMS_SQL", line 33
ORA-06512: at line 50
Here is pl/sql block:
-- CREATING FPB_T
DECLARE
v_owner VARCHAR2(32) := 'MDCCMA';
v_table_original VARCHAR2(32) := 'FACT_PAX_BKNG';
v_table VARCHAR2(32) := 'FACT_PAX_BKNG_T';
v_tblspc VARCHAR2(32) := v_owner||'_DATA';
CURSOR c_parts IS SELECT TABLESPACE_NAME, PARTITION_NAME,HIGH_VALUE, ROW_NUMBER() OVER (ORDER BY PARTITION_NAME) AS ROWNUMBER
FROM USER_TAB_PARTITIONS
WHERE TABLE_NAME = v_table_original
ORDER BY PARTITION_NAME;
v_cmd CLOB := EMPTY_CLOB();
v_cmd3 varchar2(300) := 'CREATE TABLE ' ||v_owner||'.'||v_table||' TABLESPACE '||v_tblspc
||' NOLOGGING PARTITION BY RANGE'||'(' ||'SNAPSHOT_DTM '||')' ||'(';
v_part VARCHAR2(32);
v_tblspc_name VARCHAR2(32);
v_row number;
v_value LONG;
v_tmp varchar2(20000);
v_cur INTEGER;
v_ret NUMBER;
v_sql DBMS_SQL.VARCHAR2S;
v_upperbound NUMBER;
BEGIN
v_cmd := v_cmd3;
OPEN c_parts;
FETCH c_parts INTO v_tblspc_name, v_part,v_value, v_row;
WHILE c_parts%FOUND
LOOP
IF (v_row = 1) THEN
v_tmp := ' PARTITION '||v_part||' VALUES LESS THAN ' ||'('|| v_value||')'||' NOLOGGING TABLESPACE '||v_tblspc_name;
ELSE
v_tmp := ', PARTITION '||v_part||' VALUES LESS THAN ' ||'('|| v_value||')'||' NOLOGGING TABLESPACE '||v_tblspc_name;
END IF;
v_cmd := v_cmd || v_tmp;
-- DBMS_OUTPUT.PUT_LINE(v_cmd);
FETCH c_parts INTO v_tblspc_name, v_part,v_value, v_row;
END LOOP;
-- DBMS_OUTPUT.PUT_LINE('Length:'||DBMS_LOB.GETLENGTH(v_cmd));
v_cmd := v_cmd||')'||' AS SELECT ' || '*'||' FROM ' || v_owner||'.'|| v_table_original ||' WHERE '||'1'||'='||'2'||';';
v_upperbound := CEIL(DBMS_LOB.GETLENGTH(v_cmd)/256);
FOR i IN 1..v_upperbound
LOOP
v_sql(i) := DBMS_LOB.SUBSTR(v_cmd
,256 -- amount
,((i-1)*256)+1 -- offset
END LOOP;
v_cur := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE(v_cur, v_sql, 1, v_upperbound, FALSE, DBMS_SQL.NATIVE);
v_ret := DBMS_SQL.EXECUTE(v_cur);
CLOSE c_parts;
DBMS_OUTPUT.PUT_LINE(v_cmd);
-- EXECUTE IMMEDIATE v_cmd ;
END;
The above pl/sql creates a DDL for partitioned fact table(new) based on an existing fact table and get executes through CLOB.
Please look into the issue and let me know any changes or modifications/suggestions that are required to fix the issue. Any help is appreciated.
Thank You,
SudheerThink this is your problem:
v_cmd := v_cmd||')'||' AS SELECT ' || '*'||' FROM ' || v_owner||'.'|| v_table_original ||' WHERE '||'1'||'='||'2'||';';Remove the SQL terminator ';' ... dynamic SQL doesn't require it, try this instead:
v_cmd := v_cmd||')'||' AS SELECT ' || '*'||' FROM ' || v_owner||'.'|| v_table_original ||' WHERE '||'1'||'='||'2';Thanks
Paul -
How to include in the sub-menu a table specifies of the user - UDO
hi, forum
how to include in the sub-menu a table specifies of the user
I created a table '@ IA_RELAT' in User-Defined Obejcts but I don't know as including in the sub-menu that I created
it follows my code
Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
If (pVal.MenuUID = "MySubMenu") And (pVal.BeforeAction = False) Then
Try
<u201DmyTableName->@IA_RELATu201D>
Catch
SBO_Application.MessageBox("The Form already exists")
End Try
End If
thank you
End SubHi David
Excuse me but I didn't find in MenuCreationParams Objects how to do this call of the table '@ IA_RELAT' created in User-Defined Obejcts
It follows my code
in AddMenuItems I set up the Menu and Submenu
in SBO_Application_MenuEvent it is where I am having difficulties of showing the table '@ IA_RELAT' created in User-Defined Obejcts
Thank you for any help
Private Sub AddMenuItems()
Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
oMenuItem = SBO_Application.Menus.Item("43520") 'moudles'
Dim sPath As String
sPath = Application.StartupPath
sPath = sPath.Remove(sPath.Length - 3, 3)
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP
oCreationPackage.UniqueID = "MyMenu01"
oCreationPackage.String = "Standard cost"
oCreationPackage.Enabled = True
oCreationPackage.Image = sPath & "UI.bmp"
oCreationPackage.Position = 15
oMenus = oMenuItem.SubMenus
Try ' If the manu already exists this code will fail
oMenus.AddEx(oCreationPackage)
'// Get the menu collection of the newly added pop-up item
oMenuItem = SBO_Application.Menus.Item("MyMenu01")
oMenus = oMenuItem.SubMenus
'// Create s sub menu
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
oCreationPackage.UniqueID = "MySubMenu"
oCreationPackage.String = "Auxiliary Table"
oMenus.AddEx(oCreationPackage)
Catch er As Exception ' Menu already exists
SBO_Application.MessageBox("Menu Already Exists")
End Try
End Sub
Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
If (pVal.MenuUID = "MySubMenu") And (pVal.BeforeAction = False) Then
Try
SBO_Application.ActivateMenuItem(menus.Item(1).UID.IndexOf("@IA_RELAT"))
Catch
SBO_Application.MessageBox("error")
End Try
End If
End Sub -
Hi,
Can anyone let me know what is the issue on below code and how can we avoid that? i am getting the error like below
ORA-06502: PL/SQL: numeric or value error: NULL index table key value
v_while_loop := 1;
v_delete_char_id := v_tabtype_result_values.FIRST;
WHILE v_while_loop <> v_tabtype_result_values.COUNT
LOOP
IF check_duplicate_nc_data (v_result_view,
v_tabtype_result_values(v_delete_char_id).value,
v_collection_id,
v_occurrence,
v_plan_id,
v_delete_char_id
THEN
DBMS_OUTPUT.PUT_LINE(v_delete_char_id);
v_tabtype_result_values.DELETE(v_delete_char_id);
ELSE
DBMS_OUTPUT.PUT_LINE(v_delete_char_id||','||v_tabtype_result_values(v_delete_char_id).id||','
||v_tabtype_result_values(v_delete_char_id).value||','
||v_tabtype_result_values(v_delete_char_id).validation_flag
END IF;
v_while_loop := v_while_loop + 1;
v_delete_char_id := v_tabtype_result_values.NEXT(v_delete_char_id);
END LOOP;Change:
WHILE v_while_loop <> v_tabtype_result_values.COUNT to
WHILE v_while_loop <= v_tabtype_result_values.LASTSY. -
ORA-06502: PL/SQL: numeric or value error: NULL index table key value Repor
W've been experiencing the Oracle Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value Report’ [we are currently on apex v3.0.1]. From the forum there was a reference to a bug fix: apex bug (6416829) fixed in 3.1. When we view '6416829' in Metalink we can see the bug title but cannot see any details as it's protected. Can anyone shed some light on why it's protected or provide further details.
We have many LIVE customers reporting this error and we want to be certain it's fixed in v3.1.
(currently we are working around this by flushing the shared pool but this is not ideal).
Any help would be appreciated.Scott,
This error has been thrown several times in the past 24 hours. Yesterday several of my reports threw the error, these reports have done so in the past. This morning APEX has begun throwing the error of which I have seen only once before. This is occuring at Home>Application>My Application. The error appears when I attempt to View the report in Details mode, is OK when I view the report in Icons mode. The error is occuring in my Prodution environment which has not been updated since 2/25/2009.
As before, I edited the SQL on my application's reports and the error then disappeared.
We are running Application Express 3.2.0.00.27 and Oracle Release 10.2.0.1.0. My browser is IE 7.0.
Plan to test later with FireFox provided I can download it to see if this might browser related.
Any inforamtion or guidance is appreciated.
Jeff -
Query SQL with variables Parameters and user defined tables
Hi everyone
I got a problem about Query SQL
[dbo].[@CSOURCE] is a user defined table
select * from [dbo].[@CSOURCE]
you can get the result in following
code name
T01 newspaper
T02 TV
T03 radio
T04 friends
when I execute the following SQL Statements ,I get an error
SELECT T0.CardCode , 0.CardName ,T1.Name ,T2.SONumber
FROM OCRD T0 LEFT JOIN [dbo].[@CSOURCE] T1 ON T0.U_CSOURCE = T1.Code
LEFT JOIN (SELECT T0.CardCode ,COUNT(T0.DocNum)SONumber
FROM ODLN T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
WHERE T1.GroupCode =111
AND (T0.DocDate >=[%0] or [%0]='')
AND (T0.DocDate <=[%1] or [%1]='')
GROUP BY T0.CardCode) T2 ON T0.CardCode=T2.CardCode
WHERE T0.GroupCode =111
and T0.CardType ='C
Is there anyone can correct it for me
thank you very much
Edited by: Li Mishan on Jul 17, 2008 9:36 AM
Edited by: Li Mishan on Jul 17, 2008 9:40 AMI am sorry .It is just a mistake of my typewriting.
The following is the whole SQL
dbo.@CSOURCE is a user table.It's content is
code name
T01 newspaper
T02 TV
T03 radio
T04 friends
declare @m int
declare @FromDate DateTime
declare @ToDate DateTime
set @m=(SELECT count(*) FROM ORDR T0 WHERE T0.DocDate >=[%0] and T0.DocDate <=[%1])
set @FromDate=[%0]
set @ToDate=[%1]
/*****************If I do not connect user tavble dbo.@CSOURCE ,I will succed *****************************************************/
SELECT T0.CardCode ,T0.CardName ,T2.SONumber,T1.Name
FROM OCRD T0 LEFT JOIN [dbo].[@CSOURCE] T1 ON T0.U_CSOURCE = T1.Code
LEFT JOIN (
SELECT T0.CardCode ,COUNT(T0.DocNum)SONumber FROM ODLN T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
WHERE T1.GroupCode =111
AND (T0.DocDate >=@FromDate or @FromDate='')
AND (T0.DocDate <=@ToDate or @ToDate ='')
GROUP BY T0.CardCode
) T2 ON T0.CardCode=T2.CardCode
WHERE T0.GroupCode =111
and T0.CardType ='C'
when I excute the SQL, It return a error , whith says the column name '%0' is invalid.
If I delete "set @m=(SELECT count(*) FROM ORDR T0 WHERE T0.DocDate >=[%0] and T0.DocDate <=[%1])"
and rewrite "set @FromDate='2008.05.01' set @ToDate='2008.07.01' "
It Shows the following results
CardCode CardName SONumber name
1 000070 Deng. Jiahua 1 newspaper
2 000293 LU .Weijuan 1 radio
3 000313 Xie .Jifang 3 TV
Edited by: Li Mishan on Jul 18, 2008 4:42 AM
Edited by: Li Mishan on Jul 18, 2008 4:43 AM
Edited by: Li Mishan on Jul 18, 2008 5:43 AM -
How to migrate sql server 2000 user defined function returns table
Hi,
How do I capture the SQL Server 200 user defined function that returns table? Is this supported in the current version of Oracle Migration Workbench? I am using the latest version - Release 9.2.0.1.0 with SQL SERVER 2000 plug-in.
I was able to capture the SQL Server 2000 user defined function that returns string and smalldatetime but not the functions return table during the migrate data source stage.
Thanks in Advance,
SusanSusan,
This is not currently supported. The next release of the Oracle Migration Workbench (due very soon), will do a better job of catching this mad reporting an error. We are looking into a suitable mapping and have created bug # 2355073 - TABLE DEFINITIONS NOT ACCEPTED FOR TABLE FUNCTIONS to track this issue.
Once possible solution we are looking into is using the object type to emulate. Here is an example from the bug:
Original table
SQL> create table tabela (a number, b number, c number, d number);
SQL> insert some values...
SQL> select * from tabela;
A B C D
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4
SQL Server 2000 code
CREATE FUNCTION FUNCRETORNATABELA()
RETURNS TABLE
AS
RETURN SELECT A,B,C,D FROM TABELA
SELECT A,B,C,D
FROM FUNCRETORNATABELA()
ORDER BY A
Oracle code (workaround)
SQL> create or replace type MyObjType as object (
2 a number, b number, c number, d number);
3 /
Type created.
SQL> create or replace type MyTabType as table of MyObjType;
2 /
Type created.
SQL> create or replace function teste return Mytabtype pipelined as
2 aa MyObjType := MyObjType(null, null, null, null);
3 cursor c1 is select a,b,c,d from tabela;
4 begin
5 open c1;
6 loop
7 fetch c1 into aa.a, aa.b, aa.c, aa.d;
8 exit when c1%NOTFOUND;
9 pipe row (aa);
10 end loop;
11 close c1;
12 return;
13 end;
14 /
Function created.
SQL> select * from table(teste);
A B C D
1 1 1 1
2 2 2 2
3 3 3 3
4 4 4 4
SQL> select a, c from table(teste) order by c desc;
A C
4 4
3 3
2 2
1 1
Donal -
Sql datamodeler: Design rules
Hello,
In sql datamodeler you can check your design against a number of design rules.
Is there a way you can influence these design rules?
- can you say wheter a design rule is applicable or not?
- can you change the severity?
- can you change the rule (for instance other naming convention rules)
Regards ErikNot at this stage. We want to allow users to modify them in the future. There are ways you can influence some of these. So on the Model Properties dialog their are Naming Options. If you change these, you can influence the design rules. Also, in the General Options there is a naming Standards section. So you can set naming standards here and these are used in conjunction with the Designer Rules.
I'm working on a document about all the naming standards and design rules and how they are used. It's not yet available, but I'll put it onto the Data Modeling page when it's ready.
Sue
Maybe you are looking for
-
Problem with RFC and a Z Table
hi; i´ve created a Z table as a transparent table.... now in a function module a need to save data in that table, i do the next: zfactura-vbeln_vf = i_factura. zfactura-posicion = i_posicion. zfactura-fecha_em = i_fecha
-
CSS layout - two questions on sidebar
So I'm having trouble with my sidebar: site 1. I want to get it to stretch to the bottom of the div it's in, with a 10 px margin on the bottom, basically, stretch exactly the same distance down as the main content div. I get the impression this is to
-
What's new in Font Folio 11.1?
Looks like Font Folio 11.1 released today, per http://adobe.com/products/fontfolio. Can anyone tell us what is new in the past 5 years? I had hoped for some better glyph coverage in fonts like Utopia, but I don't see any evidence of that in the docum
-
i can't burn a playlist to a disc from itunes, it comes up with no supported disc burners found, any ideas?
-
New DVD burner not working w/iTunes
Okay, I've been working on this and digging through these forums for awhile now. I'm still stumped. So here we go: I had a new DVD burner installed. I'm using Nero software which works fine for DVD, data, etc. However, iTunes gives me the "disc burne