AS a symbol of change operator for [all characters]
I have an input parameter that contains symbols ' * ' (asterisk), example:i_search_par: = ' country * Street ';
I'm going to interview:
Select * from SearchTable
where col1 like i_search_par;
I want only the "*" would act in the same way as '%' - symbol in AS operator.
So I want this query returns results:
'country 1 Street '.
'country 200 Street '.
and so on.
What is the best way to achieve that "*" will be interpreted as a "any number of all symbols"?
Maybe I can say something like:
SET SESSION ANYCHAR SYMBOL = «*»
And after doing that Oracle includes in AS operators of this star symbol is as I want?
Or should I really string replacement by replacing ' '%' to ' * ' in 'i_search_par' and other 30 these variables?
I want only the "*" would act in the same way as '%' - symbol in AS operator.
You can simply use"oracle text" with a suitable text index:
SQL> create table t
as
(select 'country 1 street' str from dual
union all
select 'country 200 street' from dual)
/
Table created.
SQL> create index t_idx
on t (str)
indextype is ctxsys.ctxcat
/
Index created.
SQL> var i_search_par varchar2(40)
SQL> exec :i_search_par := 'country * street'
PL/SQL procedure successfully completed.
SQL> select * from t where catsearch(str, :i_search_par, null) > 0
/
STR
------------------
country 1 street
country 200 street
2 rows selected.
Tags: Database
Similar Questions
-
program change install for all users to a single user
Hi, without having to reinstall, is it possible to change a programs install the option to all users for the current user? I installed yahoo messenger on our server and installed mistakingly for all users, now it opens to everyone who connects, when only a user needs. I don't want to have to manually, go around and uncheck the option 'open the connection' for everyone and I would like to remove for all users
Thank you very much
EDS
Hello
I suggest you according to the question in the forums and check them off below if it fhelps:
http://social.technet.Microsoft.com/forums/en-us/category/Exchange2010, exchangeserver.
It will be useful.
-
GREP search for all characters
(Indesign CS6, Windows 7)
For a book that I'm layout, the author marked text that should be indented like this:
[indent]
< paragraph >
< paragraph >
...
[indent]
(Of course, in an ideal world, the Publisher would have charged the author simply use a word for this function.)
I made a for the text indented paragraph style. I wanted to replace it in one shot, GREP search:
(\[indent\]) ([.| \s|\r]+) (\[/indent\]) the middle part meaning one or more (+) of any character (.) or space or paragraph return. Replace it with:
$2 and the paragraph style (getting rid of the markers at the same time).
Nothing has been found. I changed it to (\[indent\])([\w|\s|\r]+) (without the end marker [indent], to see what would happen) and now he found something - but stop at the first mark of punctuation (only reaching no not the end marker). So I tried to fill in punctuation: (\[indent\)] ([\w|\.|-, |: | \s|\r]+]) and each time more was found (by the way,------. here means a complete stop). If it works more or less.
The problem is, is a technical manual and most equations etc are in the text that should be indented, so there are a lot of characters who are neither letter or number. And of course you can not call it a clean solution.
It's the kind of string search and replace I would also use on many other projects. Does anyone know a better solution? Now, 'any character' doesn't seem to work, there at - it a code for "any character being not not a letter or number? Thanks in advance.
Try (? s)(\[indent\]\r?) (.+?) (\[/indent\]\r?)
The (? s) runs on single line mode so it can be found through several paragraphs and the (. +?) is the shortes match between the tags. I've included returns after the tags, if there has, based on your example that the tags are separate paragraphs. If they are at the end of the paragraph that you want to keep, remove the \r? to avoid losing the paragraph breaks.
-
OBIEE:need formula for all characters to the right of the rightmost space
Hello:
I need to extract the word more right of a field that could have 2-3 spaces. Example: "Administration main Boston ' = 'Boston '.
Thank you-
Charlie EPEs
Buffalo, NYCharlie,
Here you go...
RIGHT ("Dim category". CATEGORY, LENGTH ("class Dim". CATEGORY) - LOCATE ("", "Dim category".) CATEGORY,-1))
I used my neck here... Replace this with your table.columnname. It will work for zero or any number of spaces that you have in the columns... the result will be just good more.
Hope this helps
-
change the color for all the fileds element
Hi all
can someone guide me that how to change color for all fields after pressing F7? If its possible then guide me please
SarahHi again!
Try and smile:procedure set_blockitems_va ( p_block in varchar2, p_va in varchar2 ) is l_item varchar2(61); begin if p_block is null OR id_null ( find_block ( p_block ) ) OR p_va is null OR id_null ( find_va ( p_va ) ) then message ( 'Procedure Set-block-items-va is called with illegal attributes.' ); message ( ' ' ); return; end if; l_item := p_block || '.' || get_block_property ( p_block, first_item ); loop if get_item_property ( l_item, item_type ) in ( 'TEXT ITEM', 'LIST', 'RADIO GROUP', 'CHECKBOX' ) then if get_item_property ( l_item, displayed ) = 'TRUE' then set_item_property ( l_item, visual_attribute, p_va ); end if; end if; exit when l_item = p_block || '.' || get_block_property ( p_block, last_item ); l_item := p_block || '.' || get_item_property ( l_item, nextitem ); end loop; end;
Call it like:
set_blockitems_va ( :system.trigger_block, 'your_visual_attribute' );
Concerning
-
Need a script to change the password of admin for all the VMs (windows)
Need a script to change the password of admin for all the VMs (windows)
Hi LucD,
Need your help about changing the password to root for Linux VM.
It throws the following error when I run on Linux VM
Invoke VMScript: 10/04/2013-16:52:02 Invoke VMScript Could not authenticate with the guest operating system by using the supplied credentials. Thank you
Suresh
-
I want to have a replica of the Opera e-mail function. This feature allows you to aggregate all shipments of all accounts of e-mail in a single virtual aggregated view.
That is to say, we have 3 different e-mail accounts. Mozilla Thunderbird on a daily basis, I check if there is something again in the folder entering for the CPA. To do this, I click on the folder for each account. Now, what I want, is to click on a single folder where I would have a virtual aggregate view of the record entering for all these 3 accounts. I guess that, same thing can be done with different types of mail, such as:- Unread messages (after watching the mail, it automatically goes straight to aggregation 'Messages sent', below)
- Read messages
- Messages sent
- Spam messages
- Drafts, etc.
There is also this interesting feature (virtual thing applies here as well) which allows to have a bird's-eye view of attachments across all accounts classified into different job descriptions, such as:
- docs (xls, doc, ppt, etc.)
- images (jpg, png, etc.)
- Archives (zip, rar, etc.)
More then that it would be even better to have characteristic labling discovers aggregation through all our. In other words, if we scored several important messages in, say, 2 accounts, those that must be considered in the same virtual aggregate view by name, for example, "important messages". Maybe even with flags, todos, etc..
POP email accounts can be configured to use a global Inbox. Email IMAP accounts cannot.
However, there are several 'views' in Thunderbird. I suggest you try "unified." This creates a Visual Inbox containing all messages in the Inbox with subfolders showing the individual mailbox, so you can always see them separately if necessary.
through the menu bar;
View > folders > unifiedVia the Menu icon
Icon of the menu > folders > unified.This view would show all emails marked "Important", in order to sort by Tag.
-
The solution to use REGEDIT in the question linked below almost fixed my problem with PDF files on more than 30 computers with multiple users on each computer:
https://support.Mozilla.org/en-us/questions/1013642But I need to fix for all users on a computer without logging on each account on each computer. My challenge was to log on as an administrator and change the following key of the overall system instead:
HKEY_LOCAL_MACHINE\Software\Classes\.PDF
Name: by default
Type: Reg_SZ
Data: FirefoxHtmChanged FirefoxHtm to AcroExch.Document.11 data
I use Adobe Reader XI on Win7 Pro 64-bit machines.
The problem started when I ran a file downloaded to install the new version of Firefox on computers.Why Firefox would require me to use REGEDIT in this way to solve the problem?
This only happens when you set Firefox as the default browser and Firefox thinks that there is currently no application PDF file handles.
-
Can I programmatically change the default property to create for all elements of the front panel?
I need to make the logout button, when click on, takes care of all the default values of my fron Panel.
There is no way to programmatically call the functionality of an editor 'Use default' or 'Load Default'. To do it yourself, you will need to write your default values for each control explicitly in the diagram, when the user press the logout button.
-
How to permanently change the font for all emails color
How can I change the color of the font for all my emails constantly?
E-mail address is removed from the privacy *.Hello Msmouser,
What mail client do you use?If you use Outlook, I suggest to look at this article:If you use your web mail from Verizon, I would say that to visit the Verizon Mail support page:If you use Windows Live Mail, please visit: -
change the properties of VI for all screws in a library at the same time
I want to change the properties of VI for all of the screws in my library (specifically the execution properties). Is there a quick way to do it if I can avoid individually open each VI?
You can do this in a script. Open a refers to the edict of VI the VI, and then save it. Here is an example that can do this for the edition of the documentation of a set of voluntary initiatives.
-
Apply the change of power for all users
Is there a way to change a system to XP for all THE present and future users on PC Windows XP sp2? It is in a domain environment, but I have not met all GPO settings that would allow it to be. And users are not technically aware of how to make these changes on their own. Basically, I just need to show up or off in standby mode.
Any ideas are appreciated
Hi Berlan,
Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for Windows Server on TechNet forum. Please ask your question in the Forums in TechNet Windows Server.
-
In Windows Media Player 11, I would like to change the album art integrated for all the songs in an album while removing all previously used album art in advanced tag editor. My mP3 player only displays art on top of the list of advanced tag editor and WMP automatically puts most recent album on the background art. Is there a way to change this?
Hello
Try the following steps:
a. connect to the Internet.
b. open Windows Media Player.
c. click on the Library tab, and then go to the album you want to resolve.
d. right click on the album and then click on Find Album Info.
e. If you get an error message that says you must change your privacy settings before you can update media information, follow these steps: click on the Tools menu, click Options, click the Privacy tab, and then clear music update files by retrieving the news media from the Internet check box. Then, in the library, repeat the previous step.
See the following articles for more information:
http://Windows.Microsoft.com/en-us/Windows-Vista/add-or-change-album-art-in-Windows-Media-Player
-
Original title: administrator Win7
I have win7 and IE11 running on a HP 8540p. I'm the only person authorized to use the laptop - I am the administrator.
I keep getting these messages that do not allow to use a file. What should I change to have privileges for all functions?
The second file is not cooperating and was not deleted.
"Not cooperating" can mean many different things. A real verbatim error message would be more useful. In the case of locked files, it is often possible to remove safe mode.
-
Hallo,
I need to change the font size for all the inputTexts, LOVs of outputText, labels, etc. which are in different panelFormLayouts inside a panelBox.
I tried to define a CSS class and to assign to the panelBox but it has not worked.
You kindly suggest me an easy way to do this?
Thank you
Federico
Hello
You can try something like this:
AF | panelBox::content label, af | panelBox::content, af | panelBox::content entry, af | panelBox::content select {}
your style
}
At least the style of the components you named should be changed. If you need more you can add others.
Kind regards
Ruben.
Maybe you are looking for
-
How to connect automatically with a password?
Hey guys,. I bought a new Macbook this September, and I had a simple password. Now, I want to log on automatically without having to type my password. I tried to reset my password blank, but it did not work. My old Mac (not updated) does not require
-
520-1018 touchsmart PC with this compatibility issue with 64-bit Windows 8.1
Hello I'm like the only one who, even to this Pc touchsmart 520-1018 with this problem of compatibility with 64-bit Windows 8.1 help me please I have a HP TouchSmart 520-1018 en PC since I installed 64-bit windows 8.1 I don't have a touch screen! an
-
6052E, traditional and old card driver
Hello I run an application and I did some updates on my license because I was playing with a measure on the 6052E map. Since the upgrade, I'm not able to run anything on my 6052E card with my code. for the past five years, it has always worked. I thi
-
How as soon as the sub VI VI?
I am in train and learning to build large screws of Subvi, but I noticed a conundrum... I lost all my speed! A VI «Voltmeter CC...» "the voltage, and the other"voltage drive... ". ' use as a Subvi to measure the voltage and then perform a simple mul
-
How to do a system recovery disc in windows xp sp2
I want to make a recovery disk