difference between the view and the procedure
Hi Master,
Today I received a request from my senior technical leader... !!
Q > what is the difference between the view and the procedure?
I got response like this...
A view represents the logic of one or more tables/views. It won't take no place in db... It is a virtual table, query will only store in db... useful
for safety... If the main table has obtained changes... automatically discovers also change... etc.
Proecudure is a db object will be performs a perticular action... It may or may not return values. ?
But somehow, he isn't happy... He expects more... .very close view of diff. b & w and procedure.
Please explain it to me...!
Concerning
AR
874273 wrote:
Hi Blu,
Thanks for your replies...! But we think if notice and procedure will be the same no matter what point of view? Both are the same? If Design view... We can create a stored procedure?
How a view and procedure may do the same thing? They are two different things with different objectives. You use the correct one depending on what you want to achieve; they are not interchangeable.
And another question...!
(Q) how you will store Japan, characters of China in a database table? will there be a new feature in Oracle 11 g?
(A) I use dbms_lob package? Japan/China characters are multi byte characters... so we can use the nclob data type?
is this correct... ?
No, it not there no novelty in Oracle 11 g for the storage of Japanese or Chinese characters, because there is already a feature for their storage in previous versions as well. It is determined by the parameters characterset and nationality that you use when you create the database.
Why would you choose to store them in a LOB using DBMS_LOB? Yes, they have multibyte characters, but if you have configured your database for the correct character sets, for example using UTF - 8, then you can store the characters in VARCHAR2, like any other language. The only difference is that the storage of 4000 bytes limit still applies, so you maybe isn't able to store 4000 multibyte characters in a varchar2 column 4000 single-byte, it can be as little as 1000 characters if they are all characters in 4 bytes. (Note: 12 c limit in SQL can be increased up to 32,767 characters, to harmonize it with variable varchar2 PL)
Tags: Database
Similar Questions
-
Differences between VMware View and View Manager
Hi all.
What are the differences between VMware View and View Manager?
Thanks in advance.
Sincerely,
Jean-Philippe
The view administrator is the real View Manager administrator interface component.
WP
-
difference between bean view and page model bean?
Hello
You guys can tell me what is the difference between the view bean and bean of page template and where we can use this.
Thank you
Hard
As the name of specify.
Discover the bean - realted to see. It contains the set of component and other property getter. If you bind a component any with bean, it will be seen bean
model bean - these beans relate only to the model project. For example, you want to create a utility file or etc..
-
differences between the procedures and functions.
a little confusing... differences between procedures and functions...
1. a function returns only the unique value? can't return us multiple values?
2. can we use clause of 'back' and 'out' parameter at the same time in the same function
Thank youHello
Simply create a TYPE for strong cursors, returning the specified columns. For genereic, or the low sliders, there is a TYPE integrated, namely SYS_REFCURSOR.
Try this:
CREATE OR REPLACE function test_f(p_DEPTNO in emp.DEPTNO%type) return SYS_REFCURSOR as REF_C SYS_REFCURSOR; BEGIN OPEN REF_C FOR SELECT * FROM EMP WHERE DEPTNO = P_DEPTNO; RETURN REF_C; END;
You don't want to close the cursor service.
Always format your code.
-
The question regarding the positioning (differences between Design view and live view)
I don't know how to perform the same search to see if this has been asked, nor how to properly ask the question... but here goes...
I have a div id "container" which is limited to large 968px. Inside that I want to have 2 columns (one containing nothing else than a background image) next to each other.
I called a left_column and other right_column.
The background image will be in the left column and is high by wide 290px 550px.
I used CSS to define the following:
{#left_column}
background-color: #FFF;
background-image: url (.. / images/waterfall.jpg);
background-repeat: no-repeat;
position: relative;
height: 550px;
Width: 290px;
margin-right: 10px;
float: left;
}
{#right_column}
height: 550px;
Width: 650px;
margin-left: 10px;
padding-left: 12px;
position: relative;
left: 10px;
}
In "design mode" everything seems wonderful. When I go to the live view (and/or browserlab) the text in the right-hand column shows the usable space is only 300px.
If I change the width of the right_column to 'auto' can live view (and/or browserlab) everything seems all I want, but in the view design right_column width is closer to 900px and goes the WAY out of the container (which makes it very difficult to see the text as I type).
No idea what I messed up? What other details do you need?
Thanks in advance.
mikemendo wrote:
I wanted the left and right columns to be the same height, so the footer doesn't look like it has been 'floating' lower from one side to the other. The width is controlled by the banner image 968px.
Columns of Google to 'false '. It is a technique that requires a background image set to "container".
. The image is repeated behind the "right columnto fill the depth and give the impression that the two columns are of equal height.mikemendo wrote:
In the left column photos is a background image, so if I put the height and width, then the image is not of appropriate size. The reason why I did a background image was to follow the advice of David Powers in his article on "your first site.
This technique is good to use.
At present the total width of all your elements adds to 982px that is wider than your container attached to 968px. Margin and padding ARE added to the width of a 'container' if:
290px + 10px = 300px
650px + 12px 10px 10px plus 682px
TOTAL = 982px
You can adjust the math for the total width does not exceed the width of your "container".
Use this css and everything should work:
#container {}
overflow: hidden;
margin: 0 auto;
Width: 968px;
background-image: url (.. / images/rightColBg.gif)
background-repeat: repeat-y;
}
{#left_column}
background-color: #FFF;
background-image: url (.. / images/waterfall.jpg);
background-repeat: no-repeat;
Width: 290px;
margin-right: 10px;
float: left;
}
{#right_column}
Width: 656px;
padding-left: 12px;
float: left;
}
#footer {}
Clear: both;
}
-
What is the difference between the type of table and view?
Hello world.
What is the difference between the type of view and table that we can set using SQL statement such as: "tab type is table of...» » ?
A view is a stored query.
An array type is a construction of PL/SQL.
Both are documented:
http://docs.Oracle.com/CD/E11882_01/server.112/e10897/schema.htm#ADMQS0841
-
Difference between the view and the materialized view
Hi all
Can someone tell me exactly the difference between the view and materialized views?Hello
View:-this is a virtual table means table is there, but in fact is not there...
see how to create a view...create or replace view aaa as select * from emp;
Now, when we choose the AAA, he will show me all the data that would be returned by running a query "Select * from emp"... Thus, all data will come from table iteself.
View in itself is nothing but just a Sql statement that is used to create the view, in this case definition is "select * from emp.
Any update in the database table Emp which is in our case, would automatically result in the view...
Any changes (all dml) will actually update the base table (conditions apply *)Now the materialized view:-this is the same as except that it is not a virtual table... This will be created separately and it will acutally hold the result of the query that is used to create it. Any subsequent changes in the base table only will be included in the opinion of M M view is refreshed...
-
What is the difference between codec primary and secondary codec in cts-3000?
Hello
I'm a novice on telepresence. This community is only a place to resolve issues for me.
What is the difference between codec primary and secondary codec in cts-3000?
I know the primary function of the codec. but I don't know exactly of secondary function of codec.
Help me please.
Hello
On a CTS 3000 system, you have 1 codec primary and secondary 2 codecs. Secondary codecs are responsible for the camera left and right and view the connections. They communicate the main codec via an Ethernet cable.
Here is a guide to the installation of a CTS-3000 so that you can see the routing of cables.
In addition, if you are interested to learn more about the telepresence as of last year, Cisco introduced the video CCNA certification track. Maybe it's something you are interested in.
https://learningnetwork.Cisco.com/community/certifications/ccna_video
PEI
-
difference between the binding context and link container
Hello experts
can you please explain to me the difference between the binding context and link container.
I searched on the net but unable to understand the concept.
Hello
the BindingContext represents the DataBindings.cpx file execution and is a record of BindingContainers and their mapping pages and views. In addition it contains information about the data used by an application controls. The link container is the representation of the execution of the file PageDef and gives you access to the collections, methods, and attributes of the data used by a page or view. Context binding is a house while the link container is a piece in.
Frank
-
Difference between the offline and canceled State
Hi community
Can someone explain to me precisely the difference between the offline and not deployed State. As much as I understand in both cases memory will be released, correct?
Kind regards
Michael
Hi Michael,
If a virtual machine is off (off line), this means that the guest operating system VM was extinguished (free or here), but the virtual machine remains in stock in vCenter and all the network configuration of vSphere intact remains, such as external IP addresses for fenced configurations.
Cancel the deployment of turn off the virtual machine (saving the State or not), delete the virtual machine inventory, delete records in vCenter VMs and view models. If the an all fenced config is cancelled, the virtual router as well as the resulting vSwitch will be removed in vSphere.
-
differences between the Data Pump to back up the database and use RMAN?
What are the differences between the Data Pump to back up the database and use RMAN? What is DISADVANTAGES and BENEFITS?
Thank youSearch for the backup of the database in
http://docs.Oracle.com/CD/B28359_01/server.111/b28318/backrec.htm#i1007289
In brief
RMAN-> physical backup. (copies of the physical database files)
DataPump-> logical backup. (logical data such as tables, procedures)
Docs for RMAN-
http://docs.Oracle.com/CD/B28359_01/backup.111/b28270/rcmcncpt.htm#
Datapump docs
http://docs.Oracle.com/CD/B19306_01/server.102/b14215/dp_overview.htm
Published by: Sunny kichloo on July 5, 2012 06:55
-
What is the difference between associative arrays and nested tables?
Hello
What is the difference between associative arrays and nested tables?
nested tables cannot be indexed by other than pls_integer and unlike nested tables table associative cananot be declared at the schema level.
is there any other difference set apart from the diff above 2?user13710379 wrote:
What is the difference between associative arrays and nested tables?Name-value pairs (associative) against a list of values (table standard/nested table).
nested tables cannot be indexed by other than pls_integer
They are not "indexed" the way in which an associative array is indexed. A standard table is referenced by the position of the cell in the table. This position is essentially the offset of the memory of the cell from the start address of the table.
Can not solve a cell in an associative array directly via a memory offset index. You place a cell reference value it by his 'name' (a search in the linked list/hash table).
The following example shows the difference between the pairs of name / value and a list of core values.
SQL> declare 2 --// associative arrays are NAME-VALUE pairs 3 type TArr1 is table of varchar2(10) index by pls_integer; 4 type TArr2 is table of varchar2(10) index by varchar2(10); 5 6 arr1 TArr1; 7 arr2 TArr2; 8 begin 9 arr1(100) := '1st entry'; 10 arr1(1) := '2nd entry'; 11 arr1(5) := '3rd entry'; 12 13 arr2('john') := 'New York'; 14 arr2('jane') := 'Paris'; 15 arr2('jack') := 'London'; 16 17 end; 18 / PL/SQL procedure successfully completed. SQL> SQL> SQL> declare 2 --// standard arrays are lists 3 type TArr3 is table of varchar2(10); 4 type TArr4 is table of number; 5 6 arr3 TArr3; 7 arr4 TArr4; 8 begin 9 arr3 := new TArr3( '1st entry', '2nd entry', '3rd entry' ); 10 11 arr4 := new TArr4( 100, 1, 5 ); 12 end; 13 / PL/SQL procedure successfully completed. SQL>
-
What is the difference between the ref cursor and the sys_refcursor.
create or replace procedure GetEmployeesInDept (c sys_refcursor)
Hello
I have a query related to the above stored procedures.
When you set the cursor, we mentioned as sys_refcursor and in some US sites I saw him as a REF CURSOR as shown
create or replace procedure GetEmployeesInDept (Ref Cursor c)
Please tell me what is the difference between the ref cursor and the sys_refcursor.http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14261/tuning.htm#sthref2376
Concerning
Etbin
-
What is the main difference between Excel Addin and SmartView?
Hi all
What is the difference between Excel Addin and SmartView in Hyperion 11.1.2?
Thanks in advance
RSG
Published by: RSG on March 29, 2011 05:42If you want the main difference between the Excel add-in and smartview I'd say it's just they way it connects and retrieves the data. the add-in uses the grid api and tcpip and smartview uses java on the web. There are a ton of differences between the supplement and smartview, but as the versions come thay are close. Here are a few others can add to the list:
---------------------------------------------------------------------Add-in------------------------------smartview
works on several office products - no - yes
Can connect to
Essbase-----------------------------------------------------------No---------------------------------------Yes
HFM----------------------------------------------------------------No---------------------------------------Yes
Planning----------------------------------------------------------No---------------------------------------Yes
Can view members and aliases at once - Yes - No
Leaf specific options - Yes - No
Great shims formatting - Yes - sometimes -
What is the difference between the 2 procedures pls. ?
What is the difference between the 2 procedures in syntax and bussiness pls.
CREATE OR REPLACE PROCEDURE Balance_quantity_update (V_STORE_ID IN NUMBER, V_ITEM_SERIAL IN NUMBER) IS BEGIN UPDATE WH_T_ITEMS A SET BALANCE_QTY = ITEM_QTY WHERE STORE_ID = V_STORE_ID AND ITEM_SERIAL = V_ITEM_SERIAL AND ITEM_QTY = (SELECT MAX(ITEM_QTY) FROM WH_T_ITEMS B WHERE A.STORE_ID = B.STORE_ID AND A.ITEM_SERIAL = B.ITEM_SERIAL); END; /
Kind regardsCREATE OR REPLACE PROCEDURE Balance_quantity_update (V_STORE_ID IN NUMBER, V_ITEM_SERIAL IN NUMBER) IS BEGIN UPDATE WH_T_ITEMS A SET BALANCE_QTY =MAX(ITEM_QTY) WHERE STORE_ID = V_STORE_ID AND ITEM_SERIAL = V_ITEM_SERIAL ; END; /
Abdetu...I don't know exactly what you're asking. The query
UPDATE WH_T_ITEMS A SET BALANCE_QTY =MAX(ITEM_QTY) WHERE STORE_ID = V_STORE_ID AND ITEM_SERIAL = V_ITEM_SERIAL ;
is not valid SQL from Oracle. As MAX aggregate functions cannot be used in a query like that because Oracle has no idea what you aggregate by. There is nothing preventing Oracle to change the syntax of the SQL language to allow an aggregate be used this way, but there is usually no reason to extend the SQL language like that.
You can assign the result of a query that included a total of BALANCE_QTY column, i.e.
UPDATE WH_T_ITEMS A SET BALANCE_QTY = (SELECT MAX(ITEM_QTY) FROM <
> WHERE < >) WHERE STORE_ID = V_STORE_ID AND ITEM_SERIAL = V_ITEM_SERIAL ; I think I mentioned in some of your previous discussions, a data model where you have a table of ELEMENTS that has an ITEM_QTY and the BALANCE_QTY looks suspicious. You assign the value of the ITEM_QTY column to the BALANCE_QTY on the same line does only increase anxiety.
Justin
Maybe you are looking for
-
The following error keeps showing all the time. Unable to find a motive. Any idea on what this means and how I can solve it? "pteiddialogdaemon quit unexpectedly.
-
Sharing feature reads 'no service' after upgrade to Capitan
Hello Since the upgrade to El Capitan buttons sharing on bed 'without services' applications when you click on to. After working with trouble shooters Apple using the 'chat' service, we managed to get the button share to show the many options except
-
IDT HD Audio device missing. Do not install any drivers.
Product name: Desktop HP Pavilion HPE h8-1214 Product number: QW701AA OS: Windows 8 Pro x 64 No audio device installed. (unless I connect all devices usb audio or my hdmi graphics card). When one of those who are connected it recognizes them. System
-
Is it possible to add some offset on the scale of a graph Y when autoscale mode.
Hi all I'm drawn on a graph of waveform autoscale mode. I want to be a disconnect on the side upper and lower scale Y. is it possible to implement this. Thanks in advance, Karine
-
Automatic scrolling of the list of favorites on the start menu to stop before you reach the bottom
I open the start menu, point the mouse on the Favorites bar and keep the cursor under the small arrow pointing down at the bottom of the list of favorites, as well as the list of bookmarks automatically scrolls down. But after scroll down a number of