How to query for unacceptable characters
Hi there. I can query for acceptable characters but would like to query for unacceptable characters. Please see the below thread. thanks in advance!
How to find Special Characters in a table ?
~Darby
Sorry, missed it in the other post (already saturday here). So without using regular expressions. I'm a little confused now I must say.
You want to search for unacceptable characters (I assume those characters are known this time):
length(the_column) - length(replace(translate(the_column,'UNACEPTBL','*'),'*','')) > 0
Regards
Etbin
Similar Messages
-
How to query for foreign encoded text via REST service
I am using APEX 4.2.1.00.08 to publish RESTful web services that query a table of place names. The place names include foreign encoded alternates. My search field has type of NVARCHAR2 and the db has NLS_CHARACTERSET of AL32UTF8. Querying for foreign encoded names works fine from other applications (e.g. TOAD, ArcGIS).
In APEX under 'SQL Workshop | RESTful Services' I have created a module, resource template, and resource handler. When I use 'Set Bind Variables' to test the service, it works for 'English' names with no problem (e.g. 'London').
However, when I query for a foreign equivalents like 'ロンドン', the Japanese version of 'London', I get the following error:
400 - Bad Request
The request path contains illegal characters
How do I get foreign encoded place names to work as the bind variable value of a REST service?Does this query help?
select /*+ parallel(4) */
pk.table_name parent_table_name, pk.constraint_name pkey_constraint,
fk.table_name child_table_name, fk.constraint_name fkey_constraint, fk.r_constraint_name
from
user_constraints pk,
user_constraints fk
where
pk.constraint_name = fk.r_constraint_name
and pk.constraint_type='P'
and fk.constraint_type='R' -
Hi,
I have this problem, How can query a two table?
Table A -> Table B
id table-a_id
name table_b_name
the relationship is one-to-many
How can I get the result?
Hope my question make sense
cheers.
thanks a lot.I bet you have more luck looking for an answer in a SQL forum.
-
How to query for messages on JMS Queue?
Hi All,
What is the best way to query on a JMS Queue? I would like to query for messages based on values entered on a screen. Can this be achieved using the JMS Adapter or any other adapter?
JDev : 11.1.1.4
Thanks and Regards.Hi,
I am not 100% clear on your requirement and what selection criteria you need. I would be surprised if you need the DB adapter. If you just want to query how much message are in the queue or other related queries for example related to header information then DB adapter can be used. This only works when JMS queue is stored in the database. Personally I have never come across this requirement.
I suggest to look in more detail of the JMS adapter. The JMS adapter can be used to select (subscribe) to certain messages. Please read the below for more information:
http://docs.oracle.com/cd/E17904_01/integration.1111/e10231/adptr_jms.htm#CJACBCHJ
The message is automatically removed from the queue (implicit delete) the moment it is picked-up. I would not recommend deleting a message directly from the queue using DB adapter. What is the point of publishing the message in the first place?
Thanks
Sander -
How to query for XML-attribute with XPATH
Hi,
Isn't there somebody, who can tell me how to query an Attribut of an XML-element correctly ?
All my trials lead to empty rows. What's worng in my XPATH-expresion ?
XML-file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<xmlexport>
<itsystem guid="e51b91d1-ab0f-11db-2cd7-001641105333">
<field fieldidentifier="currentVersion" />
<field fieldidentifier="marketdatacosts">0</field>
I can query fine the elements and sub-elements, but not attribute 'guid' of /xmlexport/itsystem. Here some trials, all lead
SELECT t.* FROM CORIA."xmlexport156_TAB", xmltable ('/xmlexport/itsystem ' passing object_value COLUMNS
GUID VARCHAR2(1000) path '[@guid=*]') t
various versions for Xpath:
path '[@guid="*"]'
path '/[@guid=*]'
path '[@guid=*]'
xmltable ('/xmlexport' ...
path '/itsystem/[@guid=*]'
... combinations of part 1 and 2
thanks for any hint, LaoDeYou can either get them directly, or fetch the attribute in your xquery and put them in returning xml fragment, then get them like normal element.
Method #1:
path '@guid'
Method #2:
xmltable(
let $is := /xmlexport/itsystem
return <r><guid>{$is/@guid}</guid></r>
passing object_value
columns guid varchar2(1000) path '/r/guid') -
Hello -
I have a large number of E-mail addresses that were corrupted with hidden characters. I have a bunch of question marks, squares, etc. mixed in with the E-mail addresses. Is there a way to query for these values?
Thanks in advance for guidance.Assuming you can identify the numeric range of the invalid characters (i.e. ASCII 0-31) and the numeric range of the valid characters, you have some options. There is an example of replacing all the invalid characters in a string using the TRANSLATE command here
http://www.ddbcinc.com/askDDBC/topic.asp?TOPIC_ID=216
(note that you have to be able to define functions that return the invalid characters and the valid characters). You can find out where there are invalid characters by comparing the length of the raw column to the length of the translated column
SELECT *
FROM <<table>>
WHERE LENGTH(email) != LENGTH( TRANSLATE( email, safeCharacters || nonPrintingCharacters, safeCharacters ) )Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
How to query for a NULL value?
Hi all,
how can I query for a NULL value in a ViewObject. I tried to set null as where-clause param [setWhereClauseParam(0, null)]. But the created statement looks like this:
SELECT ...
FROM ...
WHERE param = null
I would expect it to create something like WHERE param IS NULL. I hope anybody has a solution for this.
Thanks,
AxelI think you should use setWhereClause("COL_NAME IS NULL")
You could use setWhereClauseParam(0, "NULL"), but only if you have a predefined query similar to: "SELECT X, Y, Z FROM A WHERE X IS :0" (which is a pretty useless query, as you can ONLY set "NULL" as the value for ":0"). -
How to query for specific filename
I'm using a modified folder_action script to ftp files up to a server once they're finished being created.
Is there a way to query for a specific filename to be present in the folder prior to passing it to the actual ftp function? The catch is that the filename will always be in the format of <mmddyy>.mp4. During the process that is creating the actual file to be ftp'd, various temp files are created prior. I'd like to ensure that only the final version of the mp4 is acted upon, which is the one with the mmddyy as the filename.The folder action already has the folder and the item paths passed to it, so you can get the individual file name by using something like:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #FFDDFF;
overflow: auto;"
title="this text can be pasted into the Script Editor">
on adding folder items to this_folder after receiving added_items
repeat with AnItem in added_items
if text (count (this_folder as text)) thru -1 of (AnItem as text) is "<mmddyy>.mp4" then
-- whatever
end if
end repeat
end adding folder items to
</pre>
There are also temporary folders that the system provides, so you shouldn't have to use the folder with the attached action at all:
get path to temporary items
get path to temporary items from user domain -
How to query for extended ASCII characters in column value
Hi All
Sorry if this has been answered before. I tried searching but none of them seems to work for me.
I am trying to search for inverted ? in my column.
I am using the following query
select *
from table_name
where regexp_like (description , '¿' )Did you try:
like '%¿%'
create table table_name (description varchar2(100))
insert into table_name values ('jh¿¿gagd')
insert into table_name values ('jhga345gd')
insert into table_name values ('j1231232hgagd¿')
select *
from table_name
where regexp_like (description , '¿' )
DESCRIPTION
jh¿¿gagd
j1231232hgagd¿
select * from table_name
where description like '%¿%'
DESCRIPTION
jh¿¿gagd
j1231232hgagd¿Edited by: user130038 on Sep 8, 2011 12:29 PM -
Find out the sql query for special characters.
Hi,
I have the emp table with column name first_name.In that table i have lot records with first_name inlcudes the below mentioned special characters.
¡ , ¿, ,Ä,Å,ä,ª,À,Á,Ã,à,á,ã,å,Æ,æ,Ç,ç,È,É,Ê,Ë,è,é,ê,ë,Ì,Í,Î, Ï,ì,í,î,ï, Ñ,ñ, ô, º, Ò, Ó, Ô, Õ, Ö, Ø, ò, ó, õ, ö, ø, ß, Û, Ù, Ú, Ü,ù, ú, û, ü, ÿ,
I am looking for the records with includes the above mentioned special characters in the first_name column.
Can u please give the sql query to find out the records.
Thanks&Regards
N.SivaramanI am looking for the records with includes the above mentioned special characters in the first_name column.One way would be:
select emp.*
from emp,
table (
sys.odcivarchar2list ('¡',
'Ä',
'Å',
'ä',
'ª',
'À',
'Á',
'Ã',
'à',
'á',
'ã',
'å',
'Æ',
'æ',
'Ç',
'ç',
'È',
'É',
'Ê',
'Ë',
'è',
'é',
'ê',
'ë',
'Ì',
'Í',
'Î',
'Ï',
'ì',
'í',
'î',
'ï',
'Ñ',
'ñ',
'ô',
'º',
'Ò',
'Ó',
'Ô',
'Õ',
'Ö',
'Ø',
'ò',
'ó',
'õ',
'ö',
'ø',
'ß',
'Û',
'Ù',
'Ú',
'Ü',
'ù',
'ú',
'û',
'ü',
'ÿ'
where instr (ename, column_value) > 0 -
How to query for a firmware version?
Hi,
My customer requires to report all firmware versions for all components. How do I acquire a firmware version for a PXI card? I have a number fo card (PXI-5421, PXI-4072, PXI-6653).
Thanks
CTHey Cimteker,
Firmware is handled differently accross various cards. Unfortuantely because of this, there's no one easy way to get firmware versions for everycard since it isn't all handled in the same way. I'm curious what the overall application is and why all of the firmware versions for the cards are needed. The driver version updates all the firmware that's necessary. Because of this, alot of time firmware is driver dependant.
Do you by any chance have an open service request with this same issue? We're currently looking into the firmware versions for these cards, and I'm wondering if the two issues are tied together.
The PXI-5421 is an arbitrary waveform generator FGEN device. with FGen, there's a VI inside of the driver that will actually return the firmware. It's called niFGEN Revision Query VI. You can get there by going to NI-FGEN » Utility >» niFgen Revision Query.vi. I also believe niSCOPE has the same situation.
Lea D.
Applications Engineering
National Instruments -
How to zoom for larger characters on the screen?
I want to enlarge the characters on the screen. How do I do it?
You can zoom with control and two-finger push.
>Sys Pref>Universal access>Seeing>Zoom>Options>
works for trackpad as well.
If you want larger print in general try View>zoom in most dropdown menus. -
How prepare Query for time series algorithm?
Hi every one,
i want next 6 month prediction, how prepare the Query ,
I have Date column,Crime column,Incidents Column,I going with next 6 month so how we get date columns month wise or date wise,
if month wise means,How split the Year and month from date colum??
Please i need some help.....waiting for reply.....
pandiyanHi Leo,
Thanks a lot for replay.
but using help of this blog also this problem not solve.
is this problem can we solve using "Seasonal Decomposition of Time Series by Loess".
Regards,
Manish -
How to query for content type in plumtree?
Hi,
I am able to browse through the documents in knowledge directory and their properties programmatically using IDK. Here I am getting document property ids and their values, but not property name?
Can anybody suggest me how to get property names for a given document in knowledge directory?
Regards,
GRemoteSession.getObjectManager(ObjectClass.Property)
ObjectManager.querySingleObejct(id)
theObject.getName()
is that what you mean?
Edited by: Joel Collins on Dec 5, 2008 5:57 AM -
How to query for tables referenced to a certain table by a FK?
Hello -
I have a table called "SERVICE". i can't drop the table because it is referenced via a foreign key by other tables. What view(s) can I query to find the referenced tables?
Thanks in advance!Does this query help?
select /*+ parallel(4) */
pk.table_name parent_table_name, pk.constraint_name pkey_constraint,
fk.table_name child_table_name, fk.constraint_name fkey_constraint, fk.r_constraint_name
from
user_constraints pk,
user_constraints fk
where
pk.constraint_name = fk.r_constraint_name
and pk.constraint_type='P'
and fk.constraint_type='R'
Maybe you are looking for
-
Trying to re-size the windows in Z SAP Script!!
Hello, Am looking to do some modifications to the custom SAP Script Layout-set, mainly re-sizing the windows, including the MAIN window. So, SE71>Change mode>Graphical Form Paiter checked, then, opened the Windows layout in graphical manner.........
-
SSH connection through the Homehub
I'm unsure if this is the correct thread. Sorry if it isn't. Basically I'm trying to turn off the BTHOMEHUB2's SSH server its hosting. I have an SSH server running on my home network which is facing the internet. At the moment it is setup to use a no
-
Can someone please confirm whether or not it is possible to base a block on a REF Column. I know it can be based on a REF table, but can it also be based on a column - I think the answer is no.
-
Install NetConnect in Global Zone of Solaris 10 x86 with 5 local zone fail
Problem: Install NetConnect in Global Zone of Solaris 10 x86 with 5 local zone failed But I didn't have any issue with the same pkg in Solaris 9 Steps taken: # groupadd netcon # useradd -d /export/home/netcon -g netcon -m netcon # vi /etc/shadow chan
-
CUCM Licensing/ordering and demo licenses
Hello, I am trying to setup a lab with CUCM and trying to figure out the process to place an order for CUCM. I know that you need DLU licneses for each phone, however do I need to buy a base license in addition to that? How does it work? Also, does C