How to find a model in a variable?
I want to do something simple (DB is 11g R2), but to my amazement, I couldn't find a simple solution.
We have a function that returns a string like "laetitia abc kdkdkd'.
What I want to do is, check if within this string, if it has a substring 'abc' inside.
How can we achieve this? If you find "abc" inside the great chain, so I want to output true, otherwise false.
Thanks in advance.
Who needs a simple solution when you can make
Select instr ('laetitia kdkdkd abc', 'abc') of double
and check the result
Tags: Database
Similar Questions
-
How to find the model, product and serial number on your Hp Printer.
This video shows you how to find your model number, product number and the serial number of your Hp Printer. This information is required to use the Hp customer care website, downlad the latest drivers, find product specifications, order correct substitute parts, troubleshooting to find the items and validate the warranty status.
* If you find this useful or mean please make sure you click on the White Star under my name to give me congratulations. **
I hope this helps!
-
How to find the number of bind variables declared in the current session
Hi all
I want to know a query to find out the number of variables declared in the current session.Note that the name of this forum is "SQL Developer *(Not for general SQL/PLSQL questions) * ', as well as for the issues with the SQL Developer tool. Please post these questions under the dedicated [SQL and PL/SQL | https://forums.oracle.com/forums/forum.jspa?forumID=75] forum (you have posted here before).
Kind regards
K. -
How to find the query select bind variables
How to extract the variable name to bind to AS suite of sql queries
' SELECT NAME IN: NAME OF THE DOUBLE '
or
"SELECT * FROM WHERE DOUBLE (: NAME = NAME)".
or
"SELECT * FROM WHERE DOUBLE: NAME IS NULL'."
or
"SELECT * FROM WHERE DOUBLE: NAME | NAME = LAST_NAME'
or
' SELECT * FROM DUAL WHERE: a = 10'
or
"SELECT * from where DOUBLE: A > = 10'.
or
"SELECT * from where DOUBLE: A < = 10 '.
Give a solution using SUBSTR, REGEXP_SUBSTR, please answer quickly
best answer will be marked correct/good...Search: and then search for the following word breaker then have the substr for them: and the separator.
You can build an own function to find the same. -
How to find the model number of Satellite
Hello
I have a laptop satellite but the model has rubbed off on the back of the laptop and I anyway find out what model it is I need to update some drivers.
Any ideas?
Thank you
JamieYou can display the model number in the Diagnostic PC Toshiba tool. Located in the Start Menu under Toshiba-> Utilities.
-
How to find the data of the variable TARGET
In the RMAN prompt when I run the command 'CONNECT TARGET', it connects to the TARGET database.
How findout which is the value stored in the variable TARGET or how findout that TARGET databases are connected to it?
Oracle 10g R2 on Windows
Thank you
Smith>
How findout which is the value stored in the variable TARGET or how findout that TARGET databases are connected to it?
By checking the value of the ORACLE_SID environment variable.
-
How to find my model name of audio chip on my Hp Pavilion dv5178us Notebook PC
Told me to look on the motherboard for the SLA and a few I've tried look for it in the Device Manager but he's not here, also, I downloaded Everest Home Edition and I couldn't find it there or. Need help with the location.
Hello
You should be able to find it under the hardware ID (Device Manager)
Right-click on Audio device, select Properties, select the Details tab, then select the hardware (drop-down) ID. A few lines in here will tell you the "signature" of the material.
Kind regards.
-
How to find the model, the product and the serial number of your HP printer
Need help with your printer, but don't know exactly what are you? Here is a video that can help!
If you need help, it is always useful to display your brand & model of printer you have.
-
How to find the CPU Microcode Patch review?
G ' Day,.
According to the next VMware KB:
Revision of the CPU Microcode Patch must be updated to version. Does anyone know how to find the Model CPUID (Stepping) installed processors and Microcode patch review there?
R630 host running ESXi 5.5.
BIOS version 2.1.5.
Kind regards
Alex.
Dell has just released new bios for FC630, R630 that updates the firmware
-
How to find the size of the semantic model
Hi all
Please can you tell me how to find the size of the semantic model.
Thank you
INDUHi Indu,
A couple of several things:
1 we still need an application, in order to account for the storage of the Table in the Application
This query gives you the name of application table
Select the table table_name from mdsys.sem_model$
where model_name = ''; This will give you the size in MB
Select semmodel.table_name, dbaseg.bytes/1024/1024 MB
of mdsys.sem_model$ semmodel, dba_segments dbaseg
where semmodel.table_name = dbaseg.segment_name
and semmodel.model_name = ''; 2. If the model is the only one of the semantic network, you can get the space used by the table of $ RDF_VALUE using this query
Select bytes/1024/1024 MB dba_segments where nom_segment = '$RDF_VALUE ';
If there are several models, this space is shared between all of them.
Kind regards!
Jorge -
How to find the child level for each table in a relational model?
Earthlings,
I need your help, and I know that, "Yes, we can change." Change this thread to a question answered.
So: How to find the child level for each table in a relational model?
I have a database of relacional (9.2), all right?
Tips:. O /* This is a child who makes N references to each of the follow N parent tables (here: three), and so on. */ /↑\ Fks O"O O" <-- level 2 for first table (circle) /↑\ Fks "o"o"o" <-- level 1 for middle table (circle) ↑ Fk "º"
-Each circle represents a table;
-Red no tables have foreign key
-the picture on the front line of tree, for example, a level 3, but when 3 becomes N? How is N? That is the question.
I started to think about the following:
First of all, I need to know how to take the kids:
Thought...select distinct child.table_name child from all_cons_columns father join all_cons_columns child using (owner, position) join (select child.owner, child.constraint_name fk, child.table_name child, child.r_constraint_name pk, father.table_name father from all_constraints father, all_constraints child where child.r_owner = father.owner and child.r_constraint_name = father.constraint_name and father.constraint_type in ('P', 'U') and child.constraint_type = 'R' and child.owner = 'OWNER') aux using (owner) where child.constraint_name = aux.fk and child.table_name = aux.child and father.constraint_name = aux.pk and father.table_name = aux.father;
We will share!
Thanks in advance,
Philips
Published by: BluShadow on April 1st, 2011 15:08
formatting of code and hierarchy for readbilityHave you looked to see if there is a cycle in the graph of dependence? Is there a table that has a foreign key to B and B has a back of A foreign key?
SQL> create table my_emp ( 2 emp_id number primary key, 3 emp_name varchar2(10), 4 manager_id number 5 ); Table created. SQL> ed Wrote file afiedt.buf 1 create table my_mgr ( 2 manager_id number primary key, 3 employee_id number references my_emp( emp_id ), 4 purchasing_authority number 5* ) SQL> / Table created. SQL> alter table my_emp 2 add constraint fk_emp_mgr foreign key( manager_id ) 3 references my_mgr( manager_id ); Table altered. SQL> ed Wrote file afiedt.buf 1 select level lvl, 2 child_table_name, 3 sys_connect_by_path( child_table_name, '/' ) path 4 from (select parent.table_name parent_table_name, 5 parent.constraint_name parent_constraint_name, 6 child.table_name child_table_name, 7 child.constraint_name child_constraint_name 8 from user_constraints parent, 9 user_constraints child 10 where child.constraint_type = 'R' 11 and parent.constraint_type = 'P' 12 and child.r_constraint_name = parent.constraint_name 13 union all 14 select null, 15 null, 16 table_name, 17 constraint_name 18 from user_constraints 19 where constraint_type = 'P') 20 start with child_table_name = 'MY_EMP' 21* connect by prior child_table_name = parent_table_name SQL> / ERROR: ORA-01436: CONNECT BY loop in user data
If you have a cycle, you have some problems.
(1) it is a NOCYCLE keyword does not cause the error, but that probably requires an Oracle version which is not so far off support. I don't think it was available at the time 9.2 but I don't have anything old enough to test on
SQL> ed Wrote file afiedt.buf 1 select level lvl, 2 child_table_name, 3 sys_connect_by_path( child_table_name, '/' ) path 4 from (select parent.table_name parent_table_name, 5 parent.constraint_name parent_constraint_name, 6 child.table_name child_table_name, 7 child.constraint_name child_constraint_name 8 from user_constraints parent, 9 user_constraints child 10 where child.constraint_type = 'R' 11 and parent.constraint_type = 'P' 12 and child.r_constraint_name = parent.constraint_name 13 union all 14 select null, 15 null, 16 table_name, 17 constraint_name 18 from user_constraints 19 where constraint_type = 'P') 20 start with child_table_name = 'MY_EMP' 21* connect by nocycle prior child_table_name = parent_table_name SQL> / LVL CHILD_TABLE_NAME PATH ---------- ------------------------------ -------------------- 1 MY_EMP /MY_EMP 2 MY_MGR /MY_EMP/MY_MGR 1 MY_EMP /MY_EMP 2 MY_MGR /MY_EMP/MY_MGR
(2) If you try to write on a table and all of its constraints in a file and do it in a valid order, the entire solution is probably wrong. It is impossible, for example, to generate the DDL for MY_EMP and MY_DEPT such as all instructions for a table come first, and all the instructions for the other are generated second. So even if NOCYCLE to avoid the error, you would end up with an invalid DDL script. If that's the problem, I would rethink the approach.
-Generate the DDL for all tables without constraint
-Can generate the DDL for all primary key constraints
-Can generate the DDL for all unique key constraints
-Can generate the DDL for all foreign key constraintsThis is not solidarity all the DOF for a given in the file object. But the SQL will be radically simpler writing - there will be no need to even look at the dependency graph.
Justin
-
How to find the square root of a number/variable
I have a number within a variable.
How to find the square root of the variable?
for example:
xxyy var = 57;
I want to find the square root of 57;
use:
trace (Math.sqrt (xxyy));
-
Compaq Deskpro IN: How can I find a model number on a Compaq Deskpro EN?
I wanted to know where to find the model number for my Compaq Deskpro EN. I looked around in line, but nobody seems to have a permanent place to get it. I have a sticker on the top of my computer that has a serial number and another number, but that's all. Is there a way I can get my serial number model number, or is there another place to a model number?
Hello:
What is... a HP DESKPRO FR.
There is no other model number.
To find the right support page you select the processor there (P866).
http://h20564.www2.HP.com/hpsc/SWD/public/readIndex?sp4ts.Oid=91948&lang=en&cc=us
-
How to find measures that use a given local variable?
I have a variable in my sequence TestStand, called Locals.x, and I want to find all the sequence steps that refer to him. I thought I might be able to right click on the variable in the 'variables' pane and use something like "find the steps using this variable.
So far, the only one that works is to rename the variable (such as Locals.x_), and then click the Analyze button to reveal errors that result. It is a clumsy method, however.
Any other ideas?
What is the problem with the help of the TestStand find/replace tool? Just press CTRL + f and type Locals.x in there. Then click find/replace. You will get a list of all the places he used.
-
T60 1953-D7U - How can I find the model/serial numbers of LCD? (on my device)
I have a discoloration LCD display I have to replace. How can I determine model/serial number of my existing screen? Thank you.
get the HWinfor32 it will tell you the model number of your LCD screen. Or you can also use the parts list (this will tell you the actual number of RUF of the LCD screen, unless you traded on the front LCD screen).
http://www-307.IBM.com/PC/support/site.WSS/product.do?template=/partslookup/partsLookup.VM
http://www.ThinkWiki.org/wiki/TFT_display
thinkwiki link talk to you brand, nits, response times, etc., on the LCD screen according to the FRU number.
Maybe you are looking for
-
How to hide album on iTunes artwork?
Some time ago I managed to activate album artwork on the home screen of iTunes (as shown in the picture) on windows and now I can't find how to turn it off, can someone help?
-
Comparable to HP photosmart 2610 ink cartridge
Is there a comparable cartridge for the HP photosmart 2610 printer all-in-one. I have always used the 96 cartridge which is expensive Panda4
-
How maually import modules?
Im trying to import some add-ons firefox manually: I have an offline computer that I use for development, I can't add additional modules from the site of firfox to this computer because it is offline, so I use environment FEBE backup for export Add-o
-
HP8000 elite SFF; What updates are available
I just bought a HP 8000 Elite SFF (WB717ET #ABU) desktop computer with a Pentium Dual-Core E5400 CPU clocked at 2.7 GHz. I was wondering what CPU from the motherboard (Rev 0C by the looks of it) could accept in order to squeeze more performance out o
-
Installation failure of HP C410A on the new laptop with Windows 8
When you try to install drivers for C410A for Windows8, the following error occurs. C:\Users\AppData\Local\Temp\7zS5877\Setup\hpzmsi01.exe the system cannot find the specified file.