Create a package that contains a record type
HelloI have a class called table as follows
Name Null? Type
-----
--------
-----
-----
CLASS_ID NOT NULL NUMBER 4
CLASS_NAME VARCHAR2 (100)
NUMBER OF SEAT_NUMBER
NUMBER OF STUD_ID
(stud_id) is a foreign table for an another table called student.
IWant to create a package of class table contained a record of the table of class type
This includes all columns in the table of class
but I get the warning: -.
package created with compilation error.
Please can you help.
It is my code: -.
sql>create or replace package classpackage as
type tclass is record(
rclass class.class%type,
rclass_id class.class_id%type,
rclass_name class.class_name%type,
rseat_number class.seat_number%type,
rstud_id class.stud_id%type);
end classpackage;
/
Why don't test you it?
satyaki>
satyaki>
satyaki>select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Elapsed: 00:00:00.43
satyaki>
satyaki>
satyaki>create table class
2 (
3 CLASS_ID NUMBER(4) NOT NULL,
4 CLASS_NAME VARCHAR2(100),
5 SEAT_NUMBER NUMBER,
6 STUD_ID NUMBER
7 );
Table created.
Elapsed: 00:00:04.75
satyaki>
satyaki>create or replace package classpackage
2 as
3 type tclass is record
4 (
5 rclass_id number(4),
6 rclass_name varchar2(100),
7 rseat_number number,
8 rstud_id number
9 );
10 end classpackage;
11 /
Package created.
Elapsed: 00:00:01.82
satyaki>
satyaki>
satyaki>
satyaki>create or replace package classpackage
2 as
3 type tclass is record
4 (
5 rclass_id class.class_id%type,
6 rclass_name class.class_name%type,
7 rseat_number class.seat_number%type,
8 rstud_id class.stud_id%type
9 );
10 end classpackage;
11 /
Package created.
Elapsed: 00:00:00.30
satyaki>
satyaki>
satyaki>
Kind regards.
LOULOU.
Tags: Database
Similar Questions
-
In Windows Live Mail 2011, I am trying to create a Signature that contains a hyperlink to my website address.
I click on Options - Mail - Signatures - new.
If I choose 'text' - there is no way to add a hyperlink.
If I choose "files, browse" do I look for? I'm supposed to be creating an HTML document to the address of the site? and if yes, how do I do that?
You'll get better help at Windows Live Mail Solution Center - Forum
[See also
Windows Live Help Center, Windows Live Mail, Windows Live Hotmail]
-
Packer of creative cloud in creating a package that I can install do not. He goes through the motions, download all updates, create setup file, but it does not work despite the fact that there are no errors in the log files
After hitting my head against the desk to repeatedly create packages, try on different computers I have finally found a solution.
These packages have been copied on an external drive, if I try and install from the external drive, which is a common practice, it fails.
If I then copy this file pkg from the outside, to the computer I install, then run it, it will to and moved very well.
That is mind-boggling stupid, because it's rare that you have to copy the file into any computer, it is less always installed off the coast of externally, and many people in the company are pushing on the network and the management of the suites so there is a serious problem in Adobe package manager if this is the case where it cannot manage the Middle installed offshore.
I hope that if anyone else is having problems so it suits.
-
How to create an iBOT that contains more than one page of dashboard
Hello
I want to create an iBOT that delivers content to HTML or PDF, but to contain more than one page of dashboard. The idea is that I have several dashboards and I want to send by email most important pages (by iBOT) of various dashboards.
Is it possible to send by a unique electronic pages of different dashboards? I can't find a way to achieve this in the content of the iBOT delivery.
Thank you.Have a search for 'Books of information' - they should satisfy your requirement.
Paul
-
Creating a header that contains various images that blend into another
Hello world
My name is CaramelSmoothie and I am new to Adobe and I must say that I am enjoying learning about Adobe products! I'm in the middle of the building a website with Adobe Muse and good. However, I am puzzled how to create my head. I don't know how I want it, but do not know how to do it. I'm not sure what to call this type of effect, but it can be found here on these sites:
Dhr.Virginia.gov/index.htm
wbhsm.org
If you look at the header on the first site, you will see 5 or 6 images that seem to melt from one to the other. I am creating a site and want to create a similar header with photos vintage like on the second site, which also has a similar effect, but the photos are stacked like a collage. I guess that these two headers could be created in correct Photoshop?
Thank you
Hello
Here's a quick tutorial that I have established for you. I was not able to open the first link, but I've created a few steps for you to follow based on your detailed description of the desired result.
(1) create a document in the dimensions required by going on File > New. For the web, your resolution should be 72 pixels/inch.
(2) make your first image in the document of copy and paste or by clicking file > Place. The image may be too large for your canvas, as see you in the first picture below. Resize the image proportionally by holding shift and dragging one of the corners of the rectangle enclosing.
(3) create a layer mask by clicking on the icon below in the layers panel. You will see a box representing the mask appear in the layers panel.
(4) select the gradient tool and color and black white option.
(5) ensuring that the mask icon is selected in the layers panel, create a gradient to your image. This will cause the image to fade. If you look at the mask icon, you will see that areas white he represent the part of the image that is revealed to us by the gray mask indicate bland and black is where the image is completely hidden away.
6) bring in your next picture as you did in step 2.
(7) in the layers panel, click and drag on the layer containing the image that you placed just below the first image.
(8) repeat the process of masking for as many images as you want.
(9) If you want a sepia tone overall / coherent, create an adjustment layer in the layers panel. Select hue/saturation. In the menu that appears, choose the preset of sepia . You can make adjustments to the adjustment layer in this Panel.
I hope this has been helpful! Please let us know if you need anything that anyone else.
-
the associative arrays containing the record type, cannot be used first
I am having trouble with the declaration of an associative array containing the Types of records and iteration using FIRST and NEXT functions.
This problem of mine is only appear when I use that types of records, the FIRST and FOLLOWING operators work very well when you use the regular NUMBER.
Trying to get the first element of the array, I get: ORA-06550: line 22, column 40: PLS 00382: expression is of the wrong type
See the code snippet below. Anyone know if this can be done in PL/SQL?
-----------------------------------------------------------------------------------------
DECLARE
-Set the record structure that will contain information on a post
TYPE PostRec IS (RECORD
post_type VARCHAR2 (4) - maybe DEB/CRED
);
lr_charge_back_post PostRec;
TYPE post_table IS TABLE OF PostRec NOT NULL
INDEX BY VARCHAR2 (4);
assoc_posts post_table;
BEGIN
-lr_charge_back_post.post_type: = "asd";
assoc_posts('1').post_type: = '1';
lr_charge_back_post: = assoc_posts.first;
END;
/Returns the index, not the file FIRST:
SQL> declare 2 TYPE PostRec IS RECORD ( 3 post_type VARCHAR2(4) -- Can be DEB/CRED 4 ); 5 6 lr_charge_back_post varchar2(20); 7 TYPE post_table IS TABLE OF PostRec NOT NULL 8 INDEX BY VARCHAR2(4); 9 10 11 assoc_posts post_table; 12 13 BEGIN 14 15 16 --lr_charge_back_post.post_type := 'asd'; 17 assoc_posts('1').post_type := '1'; 18 19 lr_charge_back_post := assoc_posts.first; 20 dbms_output.put_line('idx='||lr_charge_back_post); 21 END; 22 / idx=1 PL/SQL procedure successfully completed. SQL> declare 2 TYPE PostRec IS RECORD ( 3 post_type VARCHAR2(4) -- Can be DEB/CRED 4 ); 5 6 lr_charge_back_post varchar2(20); 7 TYPE post_table IS TABLE OF PostRec NOT NULL 8 INDEX BY VARCHAR2(4); 9 10 11 assoc_posts post_table; 12 13 BEGIN 14 15 16 --lr_charge_back_post.post_type := 'asd'; 17 assoc_posts('idx').post_type := '1'; 18 lr_charge_back_post := assoc_posts.first; 19 dbms_output.put_line('idx='||lr_charge_back_post); 20 END; 21 / idx=idx PL/SQL procedure successfully completed.
Max
http://oracleitalia.WordPress.com -
Creating a variable that contains the value of the variable system (Long) Date of change
Can someone tell me how to write a script to create a variable named DocDate, which contains the value of the variable of system (Long) Date of change? Or write a script that creates a variable named DocDate, which contains the current date? I can't find a lot of documentation on scripting ExtendScript.
Hi Julee, when you create a user variable in the interface, you cannot include the building blocks of time in the definition. They can only be used in system like the System Date of Modification (Long) variable variables. So the question is, why not just use the variable Date of change (Long) system in your document? What is the purpose of the variable user DocDate? Let me know what you think here, and I can try to help you.
Here are some ExtendScript resources:
My blog: FrameAutomation.com | FrameMaker, faster and more effective to
Debra Herman blog: Extension of FrameMaker
The large samples of Russ Ward: FrameMaker ExtendScript samples - West Street Consulting
-Rick
-
How to create a DVD that contains many videos?
I used the first 13 items to create several projects and then published in the form of video files to watch on your computer. Now, I would like to burn these projects on the same DVD. I saw the video on the subject to make a video with markers, but I would rather my separate videos. It is possible to combine the projects and thus get all the videos on the DVD somehow?
Ferro1945
First 13 items on what operating system? Have you updated 13 to 13.1 with a project open Help Menu/updates to date?
For your immediate question...
If you have several video files on want present on DVD disc as DVD VIDEO standard or widescreen on DVD disc, then
a. you put side to side on timeline Publish + share/disk/disks and DVD with presets of the project = DVD Dolby NTSC or NTSC_Widescreen_Dolby.
b. If you want your visualizer to be able to navigate through the content of the DVD during his reading with the DVD player, then you work with chronological markers, like judgment at the end of each movie content Timeline markers - you don't put a stopper at the end of the last file on the Timeline.
What you wrote, I think that you have lived it. Therefore, I'm not sure of your intention
I would like to burn these projects on the same DVD. I saw the video on the subject to make a video with markers, but I would rather my separate videos
What follows is what you have in mind?
If you have several projects, each with the content of a film to enter the very end project, then export the content of each project and then import these exports in a new project for the actual burn on a DVD disc. If this is the case, we can speak of project and export settings for each project.
Please review and give more information. For any question or need more information, feel free to ask.
Thank you.
RTA
-
Error in the Package that contains the function
Hi, here is my package I get error - "PLS-00103: encountered the symbol"="when waiting for one of the following.
create or replace package pre_pkg
is
FUNCTION FUN_DATE (date a_date)
RETURN number;
end pre_pkg;
create or replace package body pre_pkg
is
function FUN_DATE (date a_date)
Return number
is
BEGIN
IF REGEXP_LIKE (a_date,'^ \d {1} | d {2} / {1} \d | d {2} / \d {4} \d{2}:\d{2}:\d{2}.\d{3}$ "")
AND (REGEXP_INSTR (a_date, "[AP] me, 1") = 0)
AND LENGTH (a_date) > 11
AND LENGTH (TRUNC (to_char (TO_TIMESTAMP (a_date, ' MM/DD/YYYY HH24: PUT. ")))) FF'), "YYYY"))) = 4)
THEN
back: = 0;
ELSIF REGEXP_LIKE(a_date,'^\d{1}|d{2}/\d{1}|d{2}/\d{4} \d{2}:\d{2}:\d{2} [AP]M$')
AND (REGEXP_INSTR(a_date,'[AP]M',1) > 0)
AND LENGTH (TRUNC (to_char (TO_DATE (a_date, ' MM/DD/YYYY HH: MIS AM' "),"YYYY"))) = 4)
THEN
back: = 0;
ELSIF REGEXP_LIKE(a_date,'^\d{1}|d{2}/\d{1}|d{2}/\d{4}$')
AND (REGEXP_INSTR (a_date, "[AP] me, 1") = 0)
AND LENGTH (TRIM (a_date)) < 11
AND LENGTH (TRUNC (to_char (TO_DATE(a_date,'MM/DD/YYYY'), 'YYYY'))) = 4)
THEN
back: = 0;
ON THE OTHER
back: = 1;
END IF;
EXCEPTION
WHILE OTHERS THEN
back: = 1;
END FUN_DATE;
END pre_pkg;
/
Can someone help me in this regard. I use oracle 10g.All your RETURN statements should not have the: = sign. Just RETURN x;
-
Hello beautiful ActionScript Guru-
I'm new on learn AS3 and have run obstacle after roadblock to getting what, in my view, should be a simple thing to work. I'm trying to create a menu on many levels using a MovieClip that contains simple buttons. I'm facing 2 problems while posting what I've built.
1. my Menu.as (code below), says it takes "5000: the class 'Menu' must subclass"flash.display.SimpleButton"because it is linked to a symbol in the library of this type.» That's fine, except when I don't change the code to reflect the change the error message wants to difficulty, my beautiful menu driven with options turns into an absolutely useless image, with no opportunity to serve a menu at all. I have read other forums that I have what Miss me is to create a MovieClip that contains buttons, but I think that's exactly what I did. I'm not sure how to fix this error.
2. when I compile my main class (ConsStartMenu.as) did not finish the compilation error 1119: line 29 and 46, claiming that my link to my subclass (Menu.as) called a potentially indefinite property Menu through a reference with static type ConsStartMenu. After searching on Google and the forums navigation for long hours, I do have absolutely no idea what means this error, or what he wants me to difficulty. I think that this is also the reason why my sizing and centering code does not work. It's as if he can't quite find my Menu.as. Maybe a quick glance at my code will shed some light on this?
Thank you very much in advance for your help.
-connor
ConsStartMenu.as-
package {}
import flash.display.MovieClip;
import stuff from the lib of valve
Import ValveLib.Globals;
Import ValveLib.ResizeManager;
SerializableAttribute public class ConsStartMenu extends MovieClip {}
These three variables are required by the engine
public var gameAPI:Object;
public var globals: Object;
public var elementName:String;
public void ConsStartMenu(): void {}
}
This function is called when the user interface is loaded
public void onLoaded(): void {}
make this visible user interface
Visible = true;
Let customer across the user interface
Globals.instance.resizeManager.AddListener (this);
trace ("Cons Start Menu loaded!");
This. Menu.Setup (this.gameAPI, this.globals);
}
public void onResize(re:ResizeManager): * {}
var scaleRatioY:Number = re. ScreenHeight/900;
If (re. ScreenHeight > 900) {}
scaleRatioY = 1;
}
This. Menu.screenResize (re. ScreenWidth, re. ScreenHeight, scaleRatioY);
}
}
}
Menu.As-
package {}
import flash.display.MovieClip;
import flash.events.MouseEvent;
Import fl.transitions.Tween;
Fl.transitions.easing import. *;
to import flash.display.SimpleButton;
SerializableAttribute public class Menu extends MovieClip {}
var gameAPI:Object;
globals var: Object;
public void Menu() {}
}
public void Setup (api: Object, globals: Object) {}
define our variables
api = this.gameAPI;
Globals = This.Globals;
}
public void screenResize (stageX:int, stageY: int, scaleRatio:Number) {}
'this', the position being this module, in the center of the screen
This.x = stageX/2;
This.y = stageY/2;
Save the original scale of this movieClip
If (this ["originalXScale"] is nothing)
{
This ["originalXScale"] =-this.scaleX;
This ["originalYScale"] = this.scaleY;
}
This module/movieClip to scale the scaleRatio
this.scaleX = this.originalXScale * scaleRatio;
this.scaleY = this.originalYScale * scaleRatio;
}
}
}
you are missing a fundamental knowledge of classes and how they work.
the bottom line: you cannot reference Menu unless it's a static class.
You must create an instance of your class of Menu:
menu: Menu of var = new Menu();
and then you can add to your addChild (menu) for the use of ConsStartMenu, or maybe that you don't have. I can't.
is ConsStartMenu your document class?
-
Trying to create a script that lists all clusters in a data center
Hello
I am trying to create a script that exports a vCenter configuration essentially and imports it in a new vCenter. I want the script to run without specifying a center of data manually. All the scripts I've seen you need to manually enter the data center.
So, how to do a list of all the data centers with clusters in each of them? I also want to create a variable that contains the groups for the respective data centers. Here's a basic idea of what I want to do:
$Datacenters = get-data center
foreach ($Datacenter to $Datacenters)
{
$cluster = get-Cluster-location $Datacenter
Write-Host "list of clusters in $Datacenters.
Write-Host "$Cluster".
}
Who will give me the output like this:
List cluster Datacenter1
cluster2 CLUSTER1
List cluster Datacenter2
cluster3 cluster4
But I don't know how I can get so I have variable like this:
$datacenter1 = cluster1, cluster2
$datacenter2 = cluster3, cluster4
Did you mean something like this?
Get-data center | %{
New-Variable - Name $_. Name - value ([string]: join ("," (Get-Cluster-location $_ | % {$_.}))) Name})))
}
-
Creating Instances of symbols containing an image dynamically resolved - need help
I'm working on a prototype site which has many images flown in the navigation. Each image is unique, but the code rollover and rollout is identical. I am trying to create a unique symbol which can be used for all the bearings, but need help to figure this out, because it will considerably speed up my work.
I think that the pseudocode would work like this:
- Create a symbol that contains a default rollover image.
- In the symbol, add the code rollover and rollout. To set the transparency of 0 - > 100 and back.
- Create instances of the symbol on each element of the NAV.
- For each instance, set a variable containing the name of the rollover image to use.
- In this instance of symbol, get the value of the variable.
- In this instance of symbol, use the image name in the variable to replace the default image.
Appendix: How I do it manually- There is a background image of the NAV showing all unselected States
- Each element of the net asset value has a rollover image in a series of elements on the nav element. Each bearing has initially set to 0% opacity.
- Each element of a rollover image, deployment and click triggers. Triggers rollover and deployment are the same for each. There is also a little more code with deployment that provides a quick fade. It means a lot to copy same code. I hate the idea of having to change any part of this code.
Thank you! Chassy
A big thank you Tim (?)! You saved me a lot of hours on this project. I'm still learning more jQuery / javascript behind Edge. Could you assess if my interpretation of the loop content is accurate? This is my understanding of the code is more limited:
- SYM. $(array_btns [i]) - access to jQuery object associated with the element of border.
- MouseEnter (...), - the content define the code to be executed during the passage of the mouse.
- {obj:array_btns [i]} - refers to the element in the jQuery object, represented by the symbol of edge
- function {...} - function to run on the given event within the given object/symbol. The role of the "e" parameter is something I'm not clear on that. The flow of the code, it seems to represent the edge symbol that contains the element that will be affected by the code.
- var = e.data.obj BTN - implements a variable to refer to the side of edge. I think it is the same symbol as number 1 above.
- sym.getSymbol (btn).$("over").fadeIn (500) - runs the jquery code for fade in at the moment the jQuery "over" event is triggered.
Also, I'm about to start testing to see if it works in nested symbols. I guess compositionReady Trigger for each symbol, I can create a [array_btns] and then call sym.getComposition () .setup_btns ()?
-
Is it possible to create our own update packages that could be added to a base line and used as another patch?
For example, it would be possible to create a package that would check for a particular file - say, a particular version of an antivirus signature database? Or maybe that there is a particular file? Check a registry setting, or run a file, if it is not present?
Update Manager supports the creation and installation of patches custom for virtual machines.
-
Hi, can someone help me make a formula which detects and highlights the value of the cell that contains the items of data that I entered in another cell? Thank you
resolved to myself
-
Record Type in need help package tests
Hello
Please can you help me in the record Type of tests that I defined as:
I said record Type in the package TEST_PART_PKG
CREATE OR REPLACE PACKAGE TEST_PART_PKG AS
TYPE req_line_rec_type () IS RENDERING
PART_NUMBER VARCHAR2 (100),
part_line_num NUMBER,
part_name VARCHAR2 (100),
part_po_number VARCHAR2 (100),
un_number NUMBER,
part_class VARCHAR2 (20).
part_org_name VARCHAR2 (50));
TYPE req_line_tbl IS TABLE OF THE req_line_rec_type
INDEX OF DIRECTORY;
PROCEDURE update_part_line)
IN OUT NOCOPY p_req_line_tbl req_line_tbl,
p_init_msg IN VARCHAR2,
p_req_line_tbl_out OUT NOCOPY req_line_tbl,
p_req_line_err_tbl OUT NOCOPY req_line_tbl,
p_submit_approval IN VARCHAR2,
x_return_status OUT NOCOPY VARCHAR2,
x_error_msg OUT NOCOPY VARCHAR2,
p_commit IN VARCHAR2);
END;
I want to test the procedure in the package passing variables but how to approach to it?
I want to call the procedure packaged using:
DECLARE
BEGIN
TEST_PART_PKG. update_part_line
END;
v_req_line_out and v_req_line_err are the parameters, so they do not need initialization, just definition what is the procedure to put something that is.
We can only guess the purpose of these two parameters. Maybe you need to separate the records updated the destination of those that out wrong for further treatment table and that you are able to present a table of rows to update the destination table, the two parameters must be tables of rows as in general, more a single record can be the source of updated and more than one record can mistake.
Concerning
Etbin
Maybe you are looking for
-
Does 7 Iphone bought from USA to India?
Hey I'm from the India. I want to know that if I buy the Iphone 7 of the United States, while it will be unlocked and it'll work in India or not?... and if yes, then which carrier would be the best for the Iphone 7 work easily in India? Thank you
-
How to remove "My Toolbar space" - only with Firefox, not with Google
Recently, I loaded again Mozilla Firefox. When I opened it, "Ask" came immediately as the toolbar, and about.com Associates has been designated as my home page. I knew it was bad, so I removed it. It does not appear when I use the Google search engin
-
HWO deleting outdated age of specific applications in the cloud
How to remove applications specific age? My son is older and apps are obsolete. I don't want to store them forever.
-
blue screen STOP 0x0000007B when you try to install Windows XP
I replaced my SATA hard drive with a new and tried to load my Windows XP disc. Error message Stop came The message was: "Stop :) X0000007B (0XF78D2524, 0XC0000034, 0x00000000, 0x00000000) it says to check for viruses and remove all new hard drive. It
-
I get has: Run Time Error! Program: C\Program File\Intuit\QucikBooks\qbw2.exe. According to me, there is an error of NTVDM.exe code associated with it. Basically, Quick Books will not launch. Technicians of quick books it's a poblem Ms. Help