How can I make effective * Dynamics * xml database queries?
How can I make queries efficient dynamic xml based?Oracle database 11 GR 1 version material, I tried it on 11 GR 2 as well.
I have a requirement where I went from 10 search gui settings. All parameters are optional, and the user is allowed to enter all the details in the fields in any combination they like. At least one parameter will be filled more every 10.
I have millions of records in the table and have created a xmlIndex on the xmlType column.
I dynamically build the necessary xQuery of the arguments and use bind variables, so there is only a hard analysis for each "type" of the request.
But when I try this I get an error:
ORA-32512: external 'xquery variable' type is unknown
So, how to create a query based dynamic xml?
I think that it is possible that I can create variable bind in sql * more and run a SELECT statement, modify the content of the variable and re - run the query and it performs as I expect, but I can't replicate this functionality within pl/sql.
I tried to do it using the dbms_sql package I shall not know the number of bind to the run-time variables. When I try this, I get the error message:
ORA-32512: external 'xquery variable' type is unknown
If this isn't the right way, how to create dynamic xml queries (when running) founded, using bind variables within the database?
I created a minimal example to demonstrate:
CREATE TABLE xmlTest
(
id NUMBER(10,0) PRIMARY KEY,
theXml xmlType
)
/
DECLARE
l_sql VARCHAR2(100) := q'<SELECT id FROM xmlTest WHERE xmlExists ('/a[b=$b]' PASSING theXml, :b as "b")>';
l_b VARCHAR2(10) := '1';
l_curId INTEGER;
BEGIN
l_curId := dbms_sql.open_cursor;
dbms_sql.parse (c => l_curId,
statement => l_sql,
language_flag => dbms_sql.native);
dbms_sql.bind_variable (c => l_curId,
name => 'b',
value => l_b);
END;
/
When I run the present, I get:DECLARE
*
ERROR at line 1:
ORA-32512: type 'xquery external variable' is unknown
ORA-06512: at "SYS.DBMS_SQL", line 1053
ORA-06512: at line 9
Line 9 is the declaration of dbms_sql.parse.Thank you very much
Gary.
Published by: GPN & amp; GT; on February 18, 2011 10:57
Hello
Try with an explicit cast of the binding variable:
SQL> CREATE TABLE xmlTest
2 (
3 id NUMBER(10,0) PRIMARY KEY,
4 theXml xmlType
5 )
6 /
Table created
SQL> insert into xmltest values(1, xmltype('1'));
1 row inserted
SQL> insert into xmltest values(2, xmltype('2'));
1 row inserted
SQL> set serveroutput on
SQL>
SQL> DECLARE
2
3 l_sql VARCHAR2(200) :=
4 q'
Tags: Database
Similar Questions
-
How can I make effect halftone/rosette of "The Good Wife" title sequence?
I would really like to recreate this look, but I find that when I do, even a sharp image, it looks blurry (for obvious reasons). I tried to jump on the original layer and make the effect by going to filter/Pixelate/color half-tone and then take the opacity down but still looks a little blurry. Any thoughts? Thank you!
One of the things you need to remember about using a halftone effect in an image is that you actually remove information about images and consolidate in points. So before using the halftone filter, you have to sharpen the image. I say on the sharpness because that's what it looks like before you the screen. After that it seems correct if you added enough to sharpness. The level of sharpness, you'll need depends on the size of the point make you in pixels. As you can see from the image below, it seems quite oversharp.
But apply the halftone filter then remove the saturation and detail seems much more 'normal '.
Expand points, and detail starts to become blurred again.
If your results depend on these factors, but that should solve the problem for you.
-
How can I make a database for my site (muse)?
How can I make a database for my site (muse)?
locking this post as it seems to be a double post
-
How can I make an effect on the menu widget Adobe Muse?
Hello world! I was wondering how can I make animated rollover and button implementation (fadein and fadeout color and opacity) on the Muse menu widget (including the menu drop-down).
Thank you!
-
Ness.
Hi Ness
You can design animations outside the Muse and use in the Menu item.
If its about fade in/out effect then you can do that by using the States, so define States for items menu action rollover and rollout of mouse.
http://TV.Adobe.com/watch/Muse-feature-tour/Muse-define-object-States/
Thank you
Sanjit
-
How can I make the work/look like a Thunderbird 2 Thunderbird?
I used Netscape/Mozilla/Thunderbird Mail since the middle / end of the 1990s and was disappointed by the changes after Thunderbird 2, so I went years of Claws Mail, but it is not enough for everything. How can I make Thunderbird current work/look like version 2? In other words, I would turn off the tabs for messages & research, including all traces of what it looks like a label, or space curved GUI / additional shadow separated, so also have only a single search box that will search and display in the current folder box and keep the menus easy to use (with shortcuts that appear when you type) standard for GUI programs While getting rid of the imitation chrome button. I guess that the tabs are okay for things like dealing with Add-ons, but that's all. Maybe there are other things I can think. I know that most/all this can be done in terms of configuration and I think a lot of people would like that there is a full article on it. Virtually everyone, many people that I talk about e-mail also let Thunderbird for all these reasons, of it being too influenced by web browsers, and the IRC channel is virtually dead, so I came here, hoping that this place is not as dead with what happened with the project (announcing that no major update will be When most of the people preferred it maybe before the latest GUI major updates)
Seriously. You're in the minority, I think.
No one took the trouble with this stuff since V3 came out. but I wrote a blog postabout this 5 years ago and Mozillazine did a knowledge article database that went further than my blog post. But I wanted to just my menu bar headings message and back small Mozillazine entered CSS change and I think some that can be made obsolete by Australis was two years ago. But if you want to go.
-
I moved my site from the old host of godaddy. updated the dns at register.com. On my phone android with firefox, I can see the new site, after I dropped the wifi and went to the data. On my desk and my husband two computers, we can only see the old site, even after clearing cache. How can I make Firefox displays the new site?
You can reload webpages and ignore the cache to refresh potentially stale or corrupt.
- Hold down the SHIFT key and click the Reload button
- Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
- Press 'Command + shift + R' (Mac)
You can delete all data stored in Firefox with a specific area through "Forget this Site" in the context menu of a history entry ("" history > view history "or" view > sidebar > History "") or via the subject: permissions page.
Using "Forget this Site" will delete all data stored in Firefox in this area as bookmarks, cookies, words of past, cache, history, and exceptions, so be careful and if you have a password or other data from that domain you don't want to lose then check that back up these data or make a comment.
You can't recover from this "forget" unless you have a backup of the files involved.
It has no lasting effect, so if come back you on such a 'forgotten' site, then the data of this Web site will be saved once more.
-
Whenever I open my browser, plugins check page keeps opening, even though I've updated all my plugins.
How can I make this stop?
This is a bug with plugin blocklisting has been corrected.
You can correct this problem by forcing the blocklist.xml file to update or wait until Firefox updates the file.
This update will remove the gravity = '0' flags in the file that causes the problem.See:
- / questions/832793? page = 2 #answer-198407
- http://forums.mozillazine.org/viewtopic.php?p=10899869#p10899869
- Bug 663722 - the release of blocklist is notably gravity = '0' where it should not be
-
How can I make my adodc more quickly connect my SqlServer?, its takes a minute (so long) before I can view thousands of record in my listview.please someone help me.
I'm using...
Public Class McheckpaymentNew
Cn as New ADODB. Connection
Private RS As New ADODB. RecordsetPrivate Sub McheckpaymentNew_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Try
CN. ConnectionString = "DSN = database; UID = user; PWD = password"
CN. Open()RS. CursorLocation = ADODB. CursorLocationEnum.adUseClient
RS. CursorType = ADODB. CursorTypeEnum.adOpenStatic
RS. LockType = ADODB. LockTypeEnum.adLockBatchOptimisticCatch ex As Exception
MsgBox ("could not connect!, please check your network connections, or Contact MIS Dept. for assistance.", vbCritical, "Error connecting to the database...")
End
End TryEnd Sub
Please correct if I wrong use, causing the delay.please someone help me...
This issue is beyond the scope of this site and must be placed on Technet or MSDN -
Forgive my question. I am very new to Oracle.
How can I make sure that changes in the key primary supplier_id (concerning the supplier table) would also appear directly in the FOREIGN KEY (supplier_id) in the products table?
Is that not all the primary key and FOREIGN KEY on?
My paintings:
I created 2 tables and connect to apply in the data base referential integrity, as I learned.
CREATE TABLE - parent provider
(the numeric (10) of supplier_id not null,)
supplier_name varchar2 (50) not null,
Contact_Name varchar2 (50).
CONSTRAINT supplier_pk PRIMARY KEY (supplier_id)
);
CREATE TABLE - child products
(the numeric (10) of product_id not null,)
supplier_id numeric (10) not null,
CONSTRAINT fk_supplier
FOREIGN KEY (supplier_id)
REFERENCES beg (supplier_id)
);
I inserted the following text:
INSERT INTO provider
(supplier_id, supplier_name, contact_name)
VALUES
(5000, 'Apple', 'first name');
I expect that the supplier_id (5000) to the provider of the table also appears in the products table under key supplier_id having the same value which is 5000. But this does not happen.
How to get there?
Thanks in advance!
Hello
What is a foreign key in Oracle?
A foreign key is a way to ensure referential integrity in your Oracle database. A foreign key means that the values of a table must appear also in another table.
Ok!??
What is now the right way to implement referential integrity in your Oracle database that the values of a table must also be included in another table?
A foreign key referential integrity indeed enfore in ensuring that the value in the child table must have a corresponding parent key (otherwise you will encounter an error, as evidenced by "SomeoneElse"). However, it will never automatically insert a row in the other table.
If you are looking for a solution that automatically inserts a record in the other table, maybe you should go for triggers:
See:
-
How can I make US international default keyboard?
Hello. I have two keyboards responsible, U.S. and international us. How can I make US International primary? In Control Panel, the input method, the one I use is listed as US International is not a real language. So I continue to have go with the key windows + SPACEBAR. Any ideas? Thanks in advance.
Hi Bernard,.
Let us, follow these steps and check the status.
1. go to control panel and click language.
2. click on options.
3. in the input check method that only US International figure and remove other methods of entry from the list.
4. Once this is done, click on save and restart the computer for the changes to take effect.
Response with the State of the question and we will be happy to offer you our help.
-
How can I make a movie of my adobe caracrter animation project png
How can I make a movie of my adobe caracrter animation project png
In addition, if you only need a video file of the scene exported character, you can use Adobe Media Encoder - just drag the .xml file that is at the same level as the scene file exported in the queue of the SOUL.
-
How can I make the image that is within the rectangle to move?
Hi, I'm doing a Web page with muse and I found the Coffee pastries Katie page. There are some pictures in the home pages this movement inside the form when I scroll the page. Could someone please tell me that how can I make the image that is within the rectangle to move? Thank you very much
You can apply the scroll to fill the picture or the rectangle itself if you are referring to scrolling rectangle on the page.
https://helpx.Adobe.com/Muse/using/scroll-effects.html
https://helpx.Adobe.com/Muse/how-to/explore-new-scroll-effects.html
https://helpx.Adobe.com/Muse/using/applying-scroll-effects-browser-fills.html
Thank you
Sanjit
-
How can I make the biscuit and then break for both sides and have a few small pieces?
Hello
Please tell me...
How can I make the biscuit in AE and then break for both sides and has a few small chips fall?
any help would be so appreciated...
Strictly within EI, you have two options. Breaking with custom maps shatter and masking + particle effects. Wouldn't conviceing as Dave.
If you have access to a 3D application (blender is free) you can do it here.
This is a project of 2 minutes in AE with a stock image:
with one broken high buscuit animated to adjust to the split, it might be unconvincing.
Here's the project CS6 ASP file for you to play with. Take a look at all the elements to see how it worked by selecting all layers, then pressing the key u twice to see what I changed.
-
How can I make a button "react?
This is probably a dumb great question, but you know how it is, sometimes, we sit on the answer and still can not find... How can I make a button react to a click? I want just the simple effect of the button changing colors or resembling the user pushed him. Right now, it is all the same old simple button, no matter whether I click on it, you can't really make a difference. How can I give the effect "by pressing the key"? Thank you guys!
You can choose the image button and then choose from the available image buttons or click on the folder icon when you click the button on the image and choose in the Gallery 6 Captivate.
A few image buttons change color on hover or onclicked, these effects are predefined in them.
Or you can change the button on which you work, Properties Panel.
The message button and cancel on this thread it looks like a transparent button in Captivate with different fill and stroke color, and transparency is also less and with 0 corner radius.
You will find these optionns, when you click on this button and then click on in the properties panel.
Thank you.
-
How can I make java objects in a schema
Hello.. good afternoon everyone...
How can I make java objects from a database schema?
Assume that the credentials are scott/tiger@db1
One other thing is that... I do cmd (command prompt) because there is no developer plsql or sqldeveloper installed in the machine.
PLSS help... Thanks in advance...Hello
That's ok. This run just to tryDROP JAVA SOURCE "javaclass1";
Kind regards
Simma...
Maybe you are looking for
-
I lost the icon charge and all the legends with icons. Help.
I installed an update of Mozy, rebooted and found that firefox had lost the legends with the icons, the icon charge completely. Customize the box covers almost the entire page and doesn't include as much as he used to. My Autofill is over. And he has
-
HP Desktop PC Series 110: corrupted files
OK, I had been looking around to delete some things trying to rid my computer of something to do with reimage (supposed to be associated with microsoft. anyway I ended up doing a system restore which doesn't solve all the problems.) I found myself wi
-
Windows 7 drivers for dx6120 microtours
Y at - it support dx6120 format microtour PC having Windows 7 operating system. A friend of mine has just installed Win 7 and needs drivers. What are the current opportunities, or more it wise for him to downgrade to XP?
-
Acer Aspire V3 using the disc 772G 100%
Hi people, I have this laptop for a few months now, and it's fair to work propperly. I discovered that there is a problem with the drive HARD and WIN 8. I found solutions that does not entirely solve the problem. One of them that has solved a bit of
-
Windows XP - all the data disappeared
Press the wrong while using computer, the blue screen appeared & all data was backed up & can't get it back.